Preloading Fonts #9915
Answered
by
hsks
thomasbnt
asked this question in
Questions (Nuxt 2)
Preloading Fonts
#9915
-
Hello ! I have a question, how I can preload fonts on Nuxt? I have the famous "flash" of font as soon as the talk starts to load. it doesn't even last 1 second, but it's a bit destabilizing 😶 |
Beta Was this translation helpful? Give feedback.
Answered by
hsks
Oct 11, 2021
Replies: 1 comment 1 reply
-
You should add the |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
thomasbnt
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You should add the
<link rel="preload" href="link/to/font">
either to thehead
method of the file you want to preload font in, or innuxt.config.js
to add it globally across the app.