# 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.

Canonical: https://scaplet.com/glossary/critical-css

Glossary Glossary · Performance

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.

3 min

read

3

sources

Oct 23, 2026

updated

Scaplet Editorial Team

author

In one line

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.

30-second check

## Is this costing your site traffic?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?

Summarize this page with [ChatGPT](https://chatgpt.com/?hints=search&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Fcritical-css%20(%22Critical%20CSS%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Claude](https://claude.ai/new?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Fcritical-css%20(%22Critical%20CSS%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Perplexity](https://www.perplexity.ai/search?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Fcritical-css%20(%22Critical%20CSS%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [![Google](/logos/ai/google-color.svg)AI Mode](https://www.google.com/search?udm=50&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Fcritical-css%20(%22Critical%20CSS%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.)

On this page

## 4 parts, 3 minutes.

1. [The problem it solves 01](#the-problem-it-solves)
2. [When to use it 02](#when-to-use-it)
3. [How to do it 03](#how-to-do-it)
4. [Gotchas 04](#gotchas)

_01_Explained

## The problem it solves

The browser must download and parse CSS files before it can show the page, which makes CSS a [render-blocking](/glossary/render-blocking) resource. If CSS files are big, or network conditions are poor, requests for CSS can significantly increase the time before anything renders.

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](/glossary/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.

_02_At a glance

## When to use it

web.dev's guides open with a warning that this is an advanced technique that can lead to bugs if not implemented properly, and that most sites can reach their performance targets without it. Its suggested trigger is poor [First Contentful Paint](/glossary/first-contentful-paint) plus the "Eliminate render-blocking resource" opportunity in [Lighthouse](/glossary/lighthouse). That audit has since moved into the Render-blocking requests insight as of Lighthouse 13, so look for that label in current tools.

Situation

### Poor FCP and a Lighthouse render-blocking CSS opportunity

What web.dev says or implies

Worth trying critical CSS

Situation

### Large stylesheet, slow mobile networks

What web.dev says or implies

More possible impact: the more CSS a site has, the greater the potential gain

Situation

### Large amount of CSS to inline

What web.dev says or implies

Delays the transmission of the rest of the HTML document, so inline sparingly

Situation

### Repeat visitors

What web.dev says or implies

Inlined CSS can't be cached for reuse on later page loads

_03_How it works

## How to do it

1. 1

### Find what is critical

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](/glossary/hidden-text) are not.
2. 2

### Inline the critical rules

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.
3. 3

### Load the rest asynchronously

Use the [preload](/glossary/preload) pattern below, or a CSS-deferring function such as loadCSS, which web.dev recommends in production.
4. 4

### Re-run Lighthouse

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.

Deferred stylesheet pattern from web.dev

```
<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.

_04_Worth knowing

## Gotchas

### Manual extraction doesn't scale

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.

### Above the fold depends on the screen

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.

### Moving the link to the bottom isn't a fix

web.dev says the browser still prioritizes the stylesheet, so it can still block critical content.

Questions

## Asked a lot.

5 questions people ask next, answered from the sources on this page.

_01_ What is critical CSS?

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.

_02_ Does critical CSS improve SEO?

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.

_03_ How big should critical CSS be?

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.

_04_ What are the downsides of inlining CSS?

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.

_05_ How do I find which CSS is critical?

Use the Coverage tool in Chrome DevTools to see which rules the initial render uses, or an extraction tool such as Critical or Penthouse.

Sources · 3

## Every fact, linked and dated.

Official docs first. The date is when we last opened each page.

- web.dev
- chrome.com

1. 01 [Extract critical CSS](https://web.dev/articles/extract-critical-css) web.dev · checked 2026-10-25
2. 02 [Defer non-critical CSS](https://web.dev/articles/defer-non-critical-css) web.dev · checked 2026-10-25
3. 03 [Eliminate render-blocking resources (Lighthouse)](https://developer.chrome.com/docs/lighthouse/performance/render-blocking-resources) developer.chrome.com · checked 2026-10-25

## Keep learning

[All glossary](/glossary)

[Learn Render-blocking Performance](/glossary/render-blocking) [Related Above the fold Web design](/glossary/above-the-fold) [Read next First Contentful Paint Performance](/glossary/first-contentful-paint) [Do Run a free site audit Free, about two minutes](/site-audit)

Nearby in glossary
[Crawl errors](/glossary/crawl-errors) [Crawl stats report](/glossary/crawl-stats-report) [Cross-domain tracking](/glossary/cross-domain-tracking)

More in Performance
[WebP](/glossary/webp) [AVIF](/glossary/avif) [bfcache (back/forward cache)](/glossary/bfcache) [Brotli compression](/glossary/brotli-compression) [Cache-Control](/glossary/cache-control) [CDN](/glossary/cdn) [Chrome UX Report (CrUX)](/glossary/chrome-ux-report) [Content Security Policy](/glossary/content-security-policy) [Content-Length (HTTP header)](/glossary/content-length) [Core Web Vitals](/glossary/core-web-vitals) [Core Web Vitals report](/glossary/core-web-vitals-report) [CORS](/glossary/cors) [Critical CSS](/glossary/critical-css) [Critical rendering path](/glossary/critical-rendering-path) [Cumulative Layout Shift (CLS)](/glossary/cumulative-layout-shift) [dns-prefetch](/glossary/dns-prefetch) [Edge caching](/glossary/edge-caching) [fetchpriority](/glossary/fetchpriority) [First Contentful Paint](/glossary/first-contentful-paint) [First Input Delay (FID)](/glossary/first-input-delay) [font-display](/glossary/font-display) [Gzip compression](/glossary/gzip-compression) [HTTP caching](/glossary/http-caching) [HTTP/2](/glossary/http-2)

Terms on this page
[Render-blocking](/glossary/render-blocking) [Above the fold](/glossary/above-the-fold) [First Contentful Paint](/glossary/first-contentful-paint) [Lighthouse](/glossary/lighthouse) [Hidden text](/glossary/hidden-text) [preload](/glossary/preload)

Free · 2 minutes

## Know the term. _Now check your site._

The free audit reads robots.txt, sitemaps, status codes, canonicals, redirects and structured data.

[Audit my site free](/site-audit)

Free, no card 60 seconds Nobody will call you

- **46** fixes shipped without a ticket Brightpipe
- **+212%** organic clicks in 90 days Ledgerly
