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

The Frankenstein Table

A super scary way to go about tables using other layout techniques, like CSS Grid. The Frankenstein Table originally handwritten and …

What’s !important #19: CSS Refraction Effects, Scroll State Queries, @custom-media, and More

We’re back! Don’t worry, this isn’t a trick (despite what our name suggests!). However, due to the hiatus, we’re also …

CSS-Tricks has a new owner!

Yes, I’ve got the keys to the castle, so to speak. And, even after 12 years of working on the …

November 2026
MTWTFSS
 1
2345678
9101112131415
16171819202122
23242526272829
30