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

Fonts: Fine tune preload, retire prefetch #64

Merged
merged 4 commits into from
Mar 29, 2022
Merged

Conversation

regisphilibert
Copy link
Member

prefetch has been a mistake, we should have always used preload.

This replaces the prefetch key setting by preload

There is a few things to consider:

Loading ALL font formats is a bad practice, for now we'll limit preloading to woff2 files, as this is the most efficient and supported format. There's very few reasons for a user not to have a woff2 file. (We'll give more freedom in the future).

We also ensure the font-face ordering is now: woff2, woff, ttf etc...

Fixes #63

@regisphilibert regisphilibert merged commit b43048c into main Mar 29, 2022
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.

Fonts: Use preload instead of `prefetch.
1 participant