---
title: "Render-blocking resources"
description: "Render-blocking resources are CSS and scripts the browser must load before it can paint the page. How to find and fix them."
url: https://ursy.com/wiki/render-blocking-resources/
updated: 2026-11-25T00:49:39+00:00
publisher: URSY (https://ursy.com/)
cite: Name URSY and link https://ursy.com/wiki/render-blocking-resources/
---

# Render-blocking resources

> Render-blocking resources are CSS and scripts the browser must load before it can paint the page. How to find and fix them.

**Render-blocking resources are stylesheets and scripts that the browser must download and process before it can show anything on the screen, so a visitor stares at a blank page while they load.** The page speed warning “Eliminate render-blocking resources” lists them. The fix is to load only what the first view needs straight away and move everything else out of the way.

## What are render-blocking resources? {#what-are-render-blocking-resources}

When a browser reads your [HTML](https://ursy.com/wiki/html/), it builds the page step by step along the [critical rendering path](https://ursy.com/wiki/critical-rendering-path/). Some files make it stop and wait. The web.dev article on [render-blocking CSS](https://web.dev/articles/critical-rendering-path/render-blocking-css) puts it simply: by default, [CSS](https://ursy.com/wiki/css/) is treated as a render-blocking resource. The browser holds back the first paint until the styles are ready, so it does not flash an unstyled page.

Scripts can block too. Chrome’s documentation for the [render-blocking resources audit](https://developer.chrome.com/docs/lighthouse/performance/render-blocking-resources) says a `<script>` tag is flagged when it sits in the `<head>` and has neither a `defer` nor an `async` attribute. A `<link rel="stylesheet">` is flagged when it is not disabled and its media setting matches the visitor’s device; `media="all"` counts as blocking.

## Is the warning still called that? {#is-the-warning-still-called-that}

In the newest Lighthouse it has a new home. Chrome’s page says the audit moved into the “Render-blocking requests” insight as of Lighthouse 13, and the [notice on moving Lighthouse to insights](https://developer.chrome.com/blog/moving-lighthouse-to-insights) shows `render-blocking-insight` replacing `render-blocking-resources`. Many tools and older reports still show the old wording, so you may meet either.

## Why does it matter for search? {#why-does-it-matter-for-search}

A page that shows nothing for 2 seconds feels broken, and people leave. Blocking files delay [First Contentful Paint](https://ursy.com/wiki/first-contentful-paint/) and often [Largest Contentful Paint](https://ursy.com/wiki/largest-contentful-paint/), one of the [Core Web Vitals](https://ursy.com/wiki/core-web-vitals/). The web.dev guide to [optimising LCP](https://web.dev/articles/optimize-lcp) notes that stylesheets loaded from the HTML block rendering of all content that follows them, says it is almost never necessary to add synchronous scripts to the head, and puts good LCP at no more than 2.5 seconds on three in four visits or better. [Page speed](https://ursy.com/wiki/page-speed/) is not the only ranking signal, but it shapes [user experience](https://ursy.com/wiki/user-experience-ux/) and [conversion rate](https://ursy.com/wiki/conversion-rate/).

## Why does it matter for AI answers? {#why-does-it-matter-for-ai-answers}

Most [AI crawlers](https://ursy.com/wiki/ai-crawler/) fetch the raw HTML and do not run your scripts, so a blocking script does not stop them reading text that is already in the HTML. The bigger risk is content that only appears after JavaScript runs: a crawler that does no [rendering](https://ursy.com/wiki/rendering/) may see an empty shell. Keep key facts in the HTML itself. See [JavaScript SEO](https://ursy.com/wiki/javascript-seo/) and [technical SEO for AI search](https://ursy.com/wiki/technical-seo-for-ai-search/).

## How do I fix it? {#how-do-i-fix-it}

### Scripts {#scripts}

- **Add `defer`**  to scripts that need the page built first. [MDN’s script reference](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/script) says deferred scripts run after the document has been parsed, before the DOMContentLoaded event, in the order they appear.
- **Add `async`**  to independent scripts, such as some analytics tags. MDN notes they run as soon as they arrive, with no promise of order.
- **Know the edge cases.**  MDN says both attributes have no effect on inline scripts, and module scripts are deferred by default. See [async and defer scripts](https://ursy.com/wiki/async-and-defer-scripts/).
- **Remove what you do not use.**  Old sliders, chat widgets and tag-manager leftovers are common. Chrome suggests the Coverage tab in DevTools to spot unused code.

### Stylesheets {#stylesheets}

- **Inline the critical CSS** , the small set of rules for what shows at the top, in a `<style>` block, and load the rest without blocking. Chrome’s page names [preload](https://ursy.com/wiki/preload/) as one way to do this.
- **Use media attributes.**  web.dev’s example is a print stylesheet with `media="print"`: the browser still downloads it, at a lower priority, but does not wait for it before painting.
- **[Minify](https://ursy.com/wiki/minification/) and compress**  what remains, with [gzip or Brotli](https://ursy.com/wiki/text-compression-gzip-and-brotli/) on the server.
- **Cut font and icon libraries**  loaded from other servers for one or two icons.

## What are the common mistakes? {#what-are-the-common-mistakes}

- **Deferring a script the page needs to look right.**  A menu or banner that depends on it can jump about, which hurts [Cumulative Layout Shift](https://ursy.com/wiki/cumulative-layout-shift/).
- **Making everything async.**  Scripts that depend on each other can then run in the wrong order and break.
- **Inlining all the CSS.**  A 300 KB style block in every page is just a heavier blocking file.
- **Testing only on desktop broadband.**  The delay is worst on a mid-range phone on mobile data.
- **Stacking speed plugins.**  Two plugins rewriting the same files can undo each other or break the site. Clear the [cache](https://ursy.com/wiki/caching/) and test after every change.

## A worked example {#a-worked-example}

A small accountancy firm’s WordPress home page loads 9 files in the head: 4 stylesheets from the theme and plugins, 2 [Google](https://ursy.com/wiki/google/) font files, a jQuery library, a slider script and a [cookie banner](https://ursy.com/wiki/cookie-banner/) script, none deferred. On a phone the screen stays white for a long moment before the text appears.

They make 4 changes. The slider is removed, because the home page now uses one image. jQuery and the theme script get `defer`, and the site is tested to make sure the menu still works. The critical CSS for the header and first section is inlined, and the main stylesheet is loaded without blocking. The fonts are hosted on the firm’s own server with fewer weights. The report now lists 1 blocking file instead of 9, and text appears sooner on the next phone test. The firm notes each change and re-checks after the next theme update, since updates can bring blocking files back.

## How do I check it? {#how-do-i-check-it}

- Use our free [JavaScript SEO checker](https://ursy.com/javascript-seo-checker/) to see what a page needs scripts for and what is already in the HTML.
- See which plugins and libraries load with the [tech stack checker](https://ursy.com/tech-stack-checker/), and check compression and caching with the [HTTP header checker](https://ursy.com/http-header-checker/) and the [cache checker](https://ursy.com/cache-checker/).
- Shrink scripts with the [JavaScript minifier](https://ursy.com/webmaster-tools/javascript-minifier/) and work out Core Web Vitals targets with the [Core Web Vitals calculator](https://ursy.com/webmaster-tools/core-web-vitals-calculator/).
- Two more tools are on the way: a [Core Web Vitals checker](https://ursy.com/core-web-vitals-checker/) (coming soon) and a [page speed checker](https://ursy.com/page-speed-checker/) (coming soon). For live testing today, use [PageSpeed Insights](https://ursy.com/wiki/google-pagespeed-insights/) or [Lighthouse](https://ursy.com/wiki/google-lighthouse/) in Chrome.

## Questions {#questions}

### Can I remove every render-blocking resource? {#can-i-remove-every-render-blocking-resource}

Rarely, and you should not try. Some CSS must block so the page does not flash unstyled. The aim is to keep the blocking set small.

### Does a CDN fix it? {#does-a-cdn-fix-it}

A [CDN](https://ursy.com/wiki/cdn/) makes files arrive faster, but a blocking file is still blocking. Fix the order first.

### Is this the same as total blocking time? {#is-this-the-same-as-total-blocking-time}

No. [Total Blocking Time](https://ursy.com/wiki/total-blocking-time/) measures long tasks on the main thread after loading starts. Render-blocking is about the wait before the first paint.

## Related words {#related-words}

- [Critical rendering path](https://ursy.com/wiki/critical-rendering-path/)
- [Async and defer scripts](https://ursy.com/wiki/async-and-defer-scripts/)
- [First Contentful Paint](https://ursy.com/wiki/first-contentful-paint/)
- [Minification](https://ursy.com/wiki/minification/)

## Sources {#sources}

- [Chrome for Developers: Eliminate render-blocking resources](https://developer.chrome.com/docs/lighthouse/performance/render-blocking-resources), checked 25 November 2026
- [Chrome for Developers: Moving Lighthouse to performance insights](https://developer.chrome.com/blog/moving-lighthouse-to-insights), checked 25 November 2026
- [web.dev: Render-blocking CSS](https://web.dev/articles/critical-rendering-path/render-blocking-css), checked 25 November 2026
- [web.dev: Optimise Largest Contentful Paint](https://web.dev/articles/optimize-lcp), checked 25 November 2026
- [MDN: The script element](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/script), checked 25 November 2026

*Updated 25 November 2026 by URSY.*
