News for hackers. Stuff that matters.
Re:How to self-host a web font from Google Fonts by olivia-banks on Monday September 15, 2025 @11:34AM (#45250944)
Couldn't this increase FOUC? At least before you could load in your style-sheet before the font, but if you embed the font inside you get no styling at all until it can fetch all of the data, correct
Re:How to self-host a web font from Google Fonts by erikpukinskis on Monday September 15, 2025 @11:37AM (#45250981)
Not if the styles + fonts are all in the <head>?
Re:How to self-host a web font from Google Fonts by booi on Monday September 15, 2025 @12:27PM (#45251669)
wouldn't the problem be the fonts are basically in every single request and uncacheable then?
Re:How to self-host a web font from Google Fonts by kellengreen on Monday September 15, 2025 @01:05PM (#45252215)
^ this
Re:How to self-host a web font from Google Fonts by kevincox on Monday September 15, 2025 @04:22PM (#45254473)
Your CSS should be cacheable shouldn't it?
Re:How to self-host a web font from Google Fonts by Velocifyer on Monday September 15, 2025 @12:54PM (#45252029)
That increases FONC (flash of no content)
Re:How to self-host a web font from Google Fonts by dspillett on Tuesday September 16, 2025 @07:38AM (#45260859)
> Couldn't this increase FOUC?

Not if the font data is in a style tag in head, or otherwise before any content that's display might need, or be indirectly affected by, the font.

It will delay first paint on slow connections (all connections, in fact, but on a strong link you'll not notice) though.