Scott Jehl:

One of the most impactful things we can do to improve page performance and resilience is to load CSS in a way that does not delay page rendering. That’s because by default, browsers will load external CSS synchronously—halting all page rendering while the CSS is downloaded and parsed—both of which incur potential delays.

Don’t just up and do this to all your stylesheets though, otherwise, you’ll get a pretty nasty “Flash of Unstyled Content” (FOUC) as the page loads. You need to pair the technique with a way to ship critical CSS. Do that though, and like Scott’s opening sentence said, it’s quite impactful.

Interesting side story… on our Pen Editor page over at CodePen, we had a FOUC problem:

What makes it weird is that we load our CSS in tags in the completely normally, which should block-rendering and prevent FOUC. But there is some hard-to-reproduce bug at work. Fortunately we found a weird solution, so now we have an empty

Top Post

Brutalist Graphic Design: Why It’s Ugly, Bold, and Trending in 2025!

Brutalism: it’s raw, it’s messy, and it’s unapologetically bold. Whether you love it or hate it, there’s no denying its …

Chrome 133 Goodies

I often wonder what it’s like working for the Chrome team. You must get issued some sort of government-level security …

The Mistakes of CSS

Surely you have seen a CSS property and thought “Why?” For example: Why doesn’t z-index work on all elements, and …

February 2025
MTWTFSS
 12
3456789
10111213141516
17181920212223
2425262728