Skip to content

CDN font.css not working 🤔 #3466

Answered by SiTaggart
sebas1208 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @sebas1208

Yeah, it's working as expected from our point of view. Because you're using NextJS you probably don't need to add it to the <head />, the only benefit is the preconnect which might help with first time visitors.

We cater for so many different use cases, our docs, and the way we build is a bit of a catch all. We mostly see a lot of SPAs that aren't statically rendered or use SSR, so using the link in the head can be beneficial to preloading the fonts before the JavaScript has downloaded and parsed. We also deal with folks who don't have access to the head at all so we load the fonts for them too. It's not necessarily harmful either way, it doesn't download the font files twic…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@sebas1208
Comment options

Answer selected by sebas1208
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants