Code Monkey home page Code Monkey logo

Comments (7)

jawache avatar jawache commented on June 9, 2024

Actually @osamajandali after a bit of research I "think" it's that we need to use typography.toString() instead of injectStyles()?

See... KyleAMathews/typography.js#113

from aijs.rocks.

osamajandali avatar osamajandali commented on June 9, 2024

as me and @jawache talked, I think it's an issue with not putting google font link in the head so on every refresh it has to load it again.
I will add link on react helmet and should be tested again on live.

from aijs.rocks.

jawache avatar jawache commented on June 9, 2024

Hey FYI @osamajandali i'm still seeing the FOUC issue :/ also there are a few fonts that are not loading in production!

screenshot 2018-07-31 11 16 41

from aijs.rocks.

osamajandali avatar osamajandali commented on June 9, 2024

I think the build doesn't copy these file, I will take a look

from aijs.rocks.

jawache avatar jawache commented on June 9, 2024

Actually, i'm not sure that's the problem any more, I can't see the google font in the head of the page, so i think it's still downloading the google font from the JS.

from aijs.rocks.

osamajandali avatar osamajandali commented on June 9, 2024

the thing is that this is not the google font, this is icons font.. something I made like font awesome thing that I told you about if you could remember.

from aijs.rocks.

jawache avatar jawache commented on June 9, 2024

Oh yeah I think the fontello issues might not be the cause of the flash :/ just maybe some separate caching

I remember you said that you could have it so you add the google fonts directly in the HTML and not have gatsby add them with javascript, I don't think it would flash if the google fonts were added in the head since the font would already be downloaded by the time the rest of the page loads.

from aijs.rocks.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.