-
Notifications
You must be signed in to change notification settings - Fork 11
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
Adding custom font affects performance (LCP) a lot #382
Comments
can you provide a minimal reproduction? 🙏 |
This is the old version of the page that does not come with many perf improvements. I cannot deploy a new version where you could see it due to following issue: Here are the most up to date reports (they are with the font commented out):
|
Just to give you more context. In the CI script there is a job for doing Lighthouse test.
The second link will have much worse score for all pages. The first one where the only change is commenting/removing font. With font added it seems to increase the Render Delay and increase overall Largest Contentful Paint time even though font-display and font face are used. under the hood. |
Hey there!
I am amazed by the DX of this module and how easy it is to add a new web font to your Nuxt project. I want to make my application as performant as possible and the problem is when I add a web font (instead of using default machine font) the performance of the app (and more specifically Largest Contentful Paint) drops a lot :(
I have added following code to my app:
With Inter web font
Without Inter web font
I looked at the https://web.dev/articles/font-best-practices and it seems that Nuxt Fonts implements all of it by default.
Is there anything that I am missing or is it how web fonts affect performance in general?
I will be grateful for any response or feedback :)
The text was updated successfully, but these errors were encountered: