Preloaded Fonts are downloaded twice (bug?) #23194
Unanswered
Emiliano-Bucci
asked this question in
Help
Replies: 1 comment 1 reply
-
No one has a clue or face a similar issue? :/ |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, i've started to face a strange issue regarding fonts when i'm preloading them; the fonts are being downloaded/requested twice, with the result that:
I'm keeping the fonts in my
public
folder, and I'm preloading them in the<Head />
tag of the_document
component (the same strange behavior happen if I preload them inside the<Head />
tag in the_app
component).Next.js version is
10.0.5
Then I'm using the fonts inside the
<Global />
component ofemotion
using the css@font-face
declaration.If this could also help, this is my
now.json
file:Also, this issue is only reproducible in
production
while in development it works fine.The link to the website is -> https://wildtrek.it
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions