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

Astro Markdown Component Utility for Any Framework

In the previous article, I spoke about the why and how to use a Markdown component in Astro. Here, we’re …

What’s !important #12: Safari Testing, ::checkmark, HTML Anchor Positioning, and More

What’s !important #12 talks about the old (testing in Safari when you don’t have Safari), the new (::checkmark), the in-between …

Revealing Text With CSS letter-spacing

Some text effects are relatively hard to pull in CSS, the main reason being we are unable to target individual …

June 2026
MTWTFSS
1234567
891011121314
15161718192021
22232425262728
2930