Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev - Eliminate FOIT #1536

Closed
jeremenichelli opened this issue Aug 22, 2017 · 2 comments
Closed

Dev - Eliminate FOIT #1536

jeremenichelli opened this issue Aug 22, 2017 · 2 comments

Comments

@jeremenichelli
Copy link
Member

Currently the site experiences FOIT (Flash Of Invisible Text), which hits critically in speed index and critical rendering path.

I suggest using system fonts until font is ready and caching Google Fonts stylesheet on Web Storage for future visits. I wrote about this solution some time ago: https://jeremenichelli.github.io/2016/05/font-loading-strategy-static-generated-sites/

I would be glad to tackle this issue and other perf improvements on the site but I don't know if I'll have the time so I'm opening this issue in case someone grabs it first.

Reference: WebPageTest video https://www.webpagetest.org/video/view.php?id=170822_56_71cdab6b373bdf426e921032cc97f012.1.0

@skipjack
Copy link
Collaborator

@jeremenichelli thanks for bringing this up. I thought we did have some fallbacks set up at least for certain elements but if you'd like to improve on this or fix any missing ones that would be fantastic.

@skipjack
Copy link
Collaborator

Also moved to #1400. If you elaborate on exactly which fonts don't already have fallbacks I may pick this up. As you mentioned, it should be a fairly quick fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants