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

Optimize font loading #27

Open
devnook opened this issue Nov 27, 2017 · 2 comments
Open

Optimize font loading #27

devnook opened this issue Nov 27, 2017 · 2 comments

Comments

@devnook
Copy link
Collaborator

devnook commented Nov 27, 2017

No description provided.

@devnook devnook changed the title Optimize font loading, e.g. according to https://developers.google.com/web/fundamentals/performance/optimizing-content-efficiency/webfont-optimization#optimizing_loading_and_rendering Optimize font loading Nov 27, 2017
@samdutton
Copy link
Collaborator

I've had a go at this on the font branch.

I followed suggestions from the article, but they seemed to make loading slightly slower.

Using what we had before, with a link to the Google Fonts CSS file (and no <link preload ...>) DomContentLoaded for the home page and other pages is 1.34 s according to Chrome DevTools in Fast 3G emulation.

Removing the link to the Google Fonts CSS file, and only adding the required @font-face rules to main.css, and adding <link preload ...> for each required font weight, DomContentLoaded is 1.52 s.

Please check the font branch — I may be doing something wrong :).

If not, I suggest we leave the usage of web fonts as it is.

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