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

Defer Font Loading #46

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

jpdevries
Copy link

@jpdevries jpdevries commented Mar 20, 2017

As is, the entire font has to download (from another domain) before any of the stylesheet is loaded and long before any HTML content is delivered. In other words, the font delays interface from becoming usable. Usually this is unintended, so this may be a good opportunity to introduce this defer font pattern.

Closes #43

We also are not setting media on the <link> for the stylesheet, which seems like another issue. We probably should be doing that, even if it is just to set it to "all".

@jpdevries
Copy link
Author

Chrome developer tools has a really nice new "visualizer" that shows you a timeline of what the page looks like so you can get an idea of what loads and when. This might be a good pattern to use to introduce students to the critical rendering path and how to optimize content delivery.

Also, they could push up to gh-pages before optimizing. Do a Google Page Speed Insights test. Note their score. Optimize. Push. Test again. And get a sense for how their delivery and SEO score was improved.

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

Successfully merging this pull request may close these issues.

1 participant