How to Fix Render-Blocking CSS
Stop stylesheets delaying first paint by inlining what is critical and deferring the rest.
Render-blocking CSS is a stylesheet the browser must download and parse before it can paint anything, so every millisecond it takes is added to first paint. The fix is to inline the styles needed for above-the-fold content and load the rest without blocking, using a media trick or a preload with onload.
Why It Matters
The browser will not paint until it has the CSS, because painting first would mean repainting unstyled content. A single stylesheet on a slow connection can hold a blank screen for seconds.
How to Fix
Identify what is actually needed first
Inline the critical rules
Load the rest without blocking
Check for a flash of unstyled content
Code Fix
html<link rel="stylesheet" href="/styles.css"><style>/* critical above-the-fold rules */</style>
<link rel="stylesheet" href="/styles.css" media="print" onload="this.media='all'">
<noscript><link rel="stylesheet" href="/styles.css"></noscript>Platform-Specific Instructions
Most caching plugins can generate critical CSS and defer the rest. Verify the result on a real page rather than trusting the setting.
Next inlines critical CSS for its own styles automatically; the usual offender is a third-party stylesheet added by hand in the document head.
Fixed that one.
Now find the rest.
A free audit ranks every issue on your site by the score points it costs — and links each one straight to its guide.
Run a free audit