Skip to content

Change Google Fonts loading behavior to improve rendering performance#140

Open
epguthrie wants to merge 1 commit into
CMU-313:masterfrom
epguthrie:master
Open

Change Google Fonts loading behavior to improve rendering performance#140
epguthrie wants to merge 1 commit into
CMU-313:masterfrom
epguthrie:master

Conversation

@epguthrie
Copy link
Copy Markdown
Collaborator

Resolves #138.
This change prioritizes retrieving the Lato font from Google Fonts, improving the performance of content loading and reducing the risk of a "flash of invisible text".
The most dramatic impact was seen in Lighthouse testing on the login page, where performance improved 12 points between tests:

image
Before

image
After

In addition, "potential savings" on webfont load times decreased substantially:

image
Before

image
After

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.

Change font behavior to improve performance

1 participant