News for hackers. Stuff that matters.
Re:Public CDNs Are Useless and Dangerous by onion2k on Thursday June 09, 2022 @09:42AM (#31681016)
Developers need to use a system font stack which loads fonts from the system itself instead of remote web fonts.

The default font display setting for Google fonts is 'swap'. Using font-display means the browser will block rendering for a short time, and then use the fallback font if the font hasn't loaded, and then swap in font when it does eventually load.

But, and here's the important bit, the block period for 'font-display: swap' is 0ms. In other words, Google Fonts works how you think it should already so long as the developer has included a fallback system font in the font-family.

I suspect you're attributing a blocking problem to Google Fonts when really it's caused by something else.

Re:Public CDNs Are Useless and Dangerous by lelandfe on Thursday June 09, 2022 @10:00AM (#31681216)
That swap value lives inside a CSS file that, by default, is blocking. Opening a new connection takes quite a lot of time.