Performance · Loading

Render-blocking resources

The head of this page links a stylesheet in the normal way, so the browser has to wait for it to download before it can show the page.

How this page is built

The head of this page links render-blocking.css, a small stylesheet that adds the red line beside this paragraph. Because it is linked in the normal way, the browser waits for it before it paints anything.

This paragraph is styled by the render-blocking stylesheet.

Why it matters

A stylesheet linked in the head, or a script without async or defer, blocks rendering: the browser shows nothing until it has downloaded and processed the file. On a slow connection that wait delays the first paint and the largest contentful paint, even when the file is small.

The rest of this site writes its CSS into each page, so this stylesheet is the only thing holding up the first paint here.

How to check it

Run Lighthouse or PageSpeed Insights on the page and look at the diagnostics. Crawl tools that run Lighthouse for each page, or that measure page resources, report the same finding across the site. Lighthouse lists each render-blocking request and how long it delayed the page. The Network panel in Chrome’s developer tools shows that the stylesheet has the highest priority and loads before anything is painted.

How to fix it

Inline the CSS needed for the first view and load the rest without blocking, for example as a print stylesheet that switches to all media once loaded. Add defer or async to scripts in the head, or move them to the end of the body.

Back to all tests