-
Notifications
You must be signed in to change notification settings - Fork 24
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
Font use-case without FOUT or FOIT #32
Comments
Inclined to agree that dropping the font in favor of a system fallback is not going to be the best solution here (folks will want to use Web Fonts). I would be curious to hear if there's any active work on font loading optimizations from the Nuxt.js team. You can find some of the optimization work we are doing in Next.js over here btw: |
@addyosmani Using google-fonts module should do most of optimizations for font preload/prefetching without manually optimizing by developer. @anton-karlovskiy Can you please make a PR to try it? (maybe with also nice using |
Comparison between when using the original google-fonts set-up and when using
|
@anton-karlovskiy Should the comparison we are making here be the original (non-font optimized version) vs. with
I would need to double check our implementation, but I believe Google Fonts is trying to handle the preconnect already via a header (Lighthouse may assume it doesn't need to flag this because of it). Harry Roberts recently wrote about the differences between what Fonts does for you and what the value of still using a manual preconnect may be (use Find in page to find the "preconnect" section) |
It makes sense.
Thank you for explaining. |
@addyosmani cc @pi0 @danielroe FYI: #32 (comment) is updated according to #32 (comment). |
The original project was using
Roboto
font (Google font) but it contributed to CLS (FOUT/FOIT) so I removed it and ended up using the system fonts. The CLS score was reduced (Re: #21 (comment)) but I think people may want to use some custom fonts.Do you think we could solve this issue by using https://github.com/nuxt-community/google-fonts-module without using any manual approaches e.g. https://web.dev/preload-optional-fonts/?
cc @pi0 @danielroe cc @addyosmani
The text was updated successfully, but these errors were encountered: