Poor FCP and a Lighthouse render-blocking CSS opportunity
- What web.dev says or implies
- Worth trying critical CSS
Critical CSS is the styles needed for above-the-fold content, inlined in the head so a page can paint sooner. See how to extract it and when to skip it.
Critical CSS is a technique that extracts the CSS for above-the-fold content so the page can render as fast as possible. You inline those styles in the HTML head and load the rest of the CSS asynchronously. Google's web.dev calls it an advanced technique: it can improve performance but can also cause bugs, and most sites can reach their performance targets without it.
Four quick questions, then a straight answer.
From your answers, this is quietly costing you traffic and nobody has the hours to chase it. Scaplet finds every affected page, drafts the fixes and tracks how AI answers mention you.
A data platform shipped 46 fixes without a ticket.
This looks handled. Re-check after a redesign, a migration or a big content push; that is when it breaks.
Your site is small and you have the time. Work through the steps on this page, starting with the pages that get the most traffic.
Critical CSS attacks that wait. Extract the styles that apply to what a visitor sees on load, inline them in the <head>, and load the remaining stylesheet without blocking. Inlining removes the extra request for those styles. Above the fold is all the content a viewer sees on page load before scrolling, and web.dev notes there is no universally defined pixel height for it.
In Chrome DevTools open the Command Menu, run Show Coverage, and reload. Classes used for the visible content are critical; classes that only style hidden content are not.
Put those rules in a <style> block in the head. web.dev suggests keeping above-the-fold content under 14 KB compressed, because for most servers about 10 packets, or roughly 14 KB, is the most that fits in the first round trip.
Use the preload pattern below, or a CSS-deferring function such as loadCSS, which web.dev recommends in production.
In web.dev's demo, the Eliminate render-blocking resources opportunity moved to passed audits and FCP fell from 1s to 0.8s. Newer Lighthouse versions report this under the Render-blocking requests insight.
<link rel="preload" href="styles.css" as="style" onload="this.onload=null;this.rel='stylesheet'">
<noscript><link rel="stylesheet" href="styles.css"></noscript>The noscript link is the fallback for browsers that don't run JavaScript. web.dev adds that inline onload JavaScript may not work under a Content Security Policy, which is one reason it recommends a function like loadCSS in production.
web.dev says working it out by hand requires analysis of the whole DOM, and lists tools that do it: Critical, CriticalCSS and Penthouse. Penthouse suits many styles or styles injected dynamically.
web.dev says there is no universally defined pixel height for it, because of the many devices and screen sizes. Critical, one of the extraction tools, supports extracting for multiple screen resolutions.
web.dev says the browser still prioritizes the stylesheet, so it can still block critical content.
5 questions people ask next, answered from the sources on this page.
It is a technique that extracts the CSS for above-the-fold content in order to render content to the user as fast as possible. The styles are inlined in the head and the rest loads asynchronously.
web.dev presents it as a way to improve render times, such as First Contentful Paint, not as an SEO tactic. It also warns that most sites can hit their performance targets without it.
web.dev suggests keeping above-the-fold content under 14 KB compressed, since about 10 packets, roughly 14 KB, is the most that most servers can send in the first round trip.
Inlined CSS can't be cached for reuse on later page loads, and a large amount delays the rest of the HTML document. web.dev says to use it sparingly.
Use the Coverage tool in Chrome DevTools to see which rules the initial render uses, or an extraction tool such as Critical or Penthouse.
The free audit reads robots.txt, sitemaps, status codes, canonicals, redirects and structured data.