News for hackers. Stuff that matters.
Re:Self-host your fonts for better performance by strangegecko on Friday December 04, 2020 @05:27AM (#25300866)
> when implemented incorrectly, they massively slow down initial text paint

What are you thinking of in terms of "implemented incorrectly", do you happen to have an example?

Re:Self-host your fonts for better performance by scrollaway on Friday December 04, 2020 @05:59AM (#25301045)
I can't recall without looking into it, but there's a lot of gotchas when implementing web fonts. You have to ensure it's using fallbacks, that it can use them before the target fonts have loaded, that the fallbacks are close to the web font in style, and there's a bunch of CSS tricks you can use so that a repaint doesn't end up reflowing everything.