PageSpeed fix guide ·

Eliminate render-blocking resources (Render-blocking requests): how to fix it

Render-blocking requests, formerly Eliminate render-blocking resources, means the browser has to download some CSS or JavaScript files before it can show anything on screen. The short fix: add defer to scripts that don’t need to run first, keep only the styles the first screen needs in the page, and load the rest of the CSS without blocking.

In PageSpeed Insights
Render-blocking requests
Older name
Eliminate render-blocking resources
In a FlashMax report
Files block the first paint

92.9% of the 40,951 WooCommerce stores FlashMax tested have this problem. See the study

The short fix

  1. Run a speed test and write down the files listed under Render-blocking requests.
  2. Add defer to scripts in the page head, or switch on your cache plugin’s defer option.
  3. Load CSS the first screen doesn’t need without blocking: a used-CSS or critical-CSS feature does this.
  4. Stop loading files the page doesn’t use at all, such as slider or form files on pages without them.
  5. Check the site logged out on a phone (menu, cart, checkout), then re-test two or three times.

What PageSpeed Insights is telling you

PageSpeed Insights lists this under Insights as Render-blocking requests. Older reports and most tutorials call it Eliminate render-blocking resources: since Lighthouse 13 the old audit lives inside the new insight, and the advice is the same.

A request is render-blocking when the browser must finish it before it paints the page. Lighthouse flags:

  • a <script> in the <head> that has neither defer nor async;
  • a <link rel="stylesheet"> without a disabled attribute and without a media attribute that rules it out for the visitor’s device. media="all" still counts as blocking.

The insight lists each blocking file with its transfer size and the time it costs in milliseconds. In a FlashMax report the same problem is the card Files block the first paint. It appears when files hold the first paint back by 300 ms or more.

Why it slows the page

Nothing appears on screen until every blocking file has arrived and been processed. On a phone with a slow connection, each extra stylesheet or script in the head pushes back First Contentful Paint (FCP, 10% of the Lighthouse score) and usually Largest Contentful Paint (LCP, 25%), the moment the main image or headline shows.

Google counts an LCP of 2.5 seconds or less as good; blocking files spend part of that budget before the page shows anything at all.

The insight itself doesn’t change the score; only the five metrics do. Fixing it raises the score because FCP and LCP get faster.

How common it is

It’s the most common problem in our data. In our study of 40,951 WooCommerce stores (home page, phone test, Lighthouse 13), 92.9%, or 38,042 stores, had files holding the first paint back by 300 ms or more. Stores with the problem had a median phone score of 52, stores without it 55. That gap is a correlation, not proof: stores with one problem usually have others too. Method and caveats are in the WooCommerce speed study.

How to find the blocking files

  • FlashMax: paste your address into the free speed test. In about a minute the card Files block the first paint shows the files behind it.
  • PageSpeed Insights: on the Mobile tab, open Insights → Render-blocking requests and expand it to see each file.
  • Chrome DevTools: the Coverage tab shows how much of each CSS and JavaScript file the page actually uses. A large stylesheet that’s mostly unused is the first candidate to trim or defer.

Then read the file addresses. /wp-content/plugins/plugin-name/ tells you which plugin loads a file, /wp-content/themes/theme-name/ points to the theme, and /wp-includes/ is WordPress itself. On a WooCommerce store the list often includes the theme’s style.css, WooCommerce’s stylesheets, page-builder CSS, a Google Fonts stylesheet and jQuery.

How to fix it on WordPress and WooCommerce

Work in this order: scripts first, then CSS, then files you don’t need. Change one setting at a time and check the site after each.

1. Defer scripts

defer lets the browser download a script while it reads the page, then run it after the HTML is parsed, in the original order. async runs a script as soon as it arrives, in no set order, so keep it for independent scripts such as analytics.

  • WP Rocket: Load JavaScript Deferred. For scripts that can wait until the visitor interacts, Delay JavaScript Execution.
  • LiteSpeed Cache: Page Optimization → JS Settings → Load JS Deferred, set to Deferred (runs after the HTML has loaded) or Delayed (runs after user activity). Add scripts that break to JS Deferred/Delayed Excludes on the Tuning tab.
  • Autoptimize: the JavaScript option don’t aggregate but defer.

jQuery is the usual trouble spot, because many theme and WooCommerce scripts written into the page expect it to be there already. Autoptimize leaves WordPress’s jQuery out of its JavaScript optimization by default for this reason, and its FAQ warns that loading jQuery with async will very likely cause “jQuery is not defined” errors.

2. Stop CSS from blocking

CSS is harder. Defer all of it and visitors see an unstyled page for a moment. The safe pattern is to put the small set of rules the first screen needs into the page and load the full stylesheets without blocking.

  • WP Rocket: Remove Unused CSS keeps only the CSS each page uses, inside the page. Details and the alternative are in our unused CSS guide.
  • LiteSpeed Cache: Page Optimization → CSS Settings → Load CSS Asynchronously. It builds critical CSS with the QUIC.cloud service; without QUIC.cloud, CSS won’t load asynchronously.
  • Autoptimize: inline and defer CSS. You paste the above-the-fold CSS into a box yourself; the FAQ names a paid service for generating it.

Chrome’s own guidance calls inlining CSS an advanced technique that can cause bugs if done poorly, and says most sites can meet the performance targets without it. So defer scripts and trim CSS first, and treat critical CSS as the last step.

3. Remove what the page doesn’t need

The fastest file is the one that never loads. Contact-form styles on every page, a slider library on pages without a slider, a whole icon font for three icons: unload them where they aren’t used. Our guides to unused CSS and unused JavaScript show how to do that per page. A Google Fonts stylesheet blocks rendering too; see the font display guide.

Shopify and hand-built sites

Shopify: you can’t change the platform’s own files, but you control the theme. Shopify’s theme guidance is to keep CSS for the first screen render-blocking, so the page doesn’t flash unstyled, and to load styles for sections further down asynchronously. Its example uses section.index, so sections near the top keep a normal stylesheet. The Liquid script_tag filter can’t add defer, so write theme script tags by hand:

{%- if section.index > 2 -%}
  <link rel="stylesheet" href="{{ 'section-styles.css' | asset_url }}" media="print" onload="this.media='all'">
  <noscript><link rel="stylesheet" href="{{ 'section-styles.css' | asset_url }}"></noscript>
{%- else -%}
  {{ 'section-styles.css' | asset_url | stylesheet_tag }}
{%- endif -%}

<script src="{{ 'theme-interactions.js' | asset_url }}" defer></script>

Scripts that apps add are controlled by the app, so check its settings or ask its developer.

Hand-built sites: this is the pattern from web.dev, with the first-screen CSS inline, the full stylesheet preloaded and switched on when it arrives, and the script deferred:

<head>
  <style>/* only the rules the first screen needs */</style>
  <link rel="preload" href="/css/site.css" as="style" onload="this.onload=null;this.rel='stylesheet'">
  <noscript><link rel="stylesheet" href="/css/site.css"></noscript>
  <script src="/js/site.js" defer></script>
</head>

A stylesheet needed only for print or for certain screen sizes can carry a matching media attribute, for example media="print"; the browser doesn’t block rendering on stylesheets whose media doesn’t match the device. Note that defer has no effect on inline scripts, and type="module" scripts are deferred by default.

Mistakes to avoid

  • Switching everything on at once. Turn options on one by one and test the menu, search, add to cart, the mini cart, checkout and the cookie banner after each.
  • Loading jQuery with async. Scripts that need it then run before it exists and fail.
  • Deferring all CSS without critical CSS. Visitors see a flash of unstyled content and the layout can jump.
  • Testing while logged in. Cache and optimization plugins often serve admins a different page. Use a private window.
  • Running two optimizers on the same files. Two plugins deferring or rewriting the same CSS and JavaScript cause hard-to-trace bugs. Pick one.
  • Chasing an empty list. A small blocking stylesheet with the first-screen CSS is fine. Aim to get the delay down, not to defer every last file.

How to check the fix worked

  1. Clear every cache layer: the plugin, the server and the CDN.
  2. Re-test two or three times and compare the middle result; lab scores vary between runs.
  3. Open the insight again: the list should be shorter and FCP lower.
  4. Open the site on a real phone, logged out, and go through the menu, a product, the cart and checkout.
  5. Field data (the Core Web Vitals report in Search Console, CrUX) covers the previous 28 days, so expect it to move about four weeks after the change.

Questions people ask

Is “Eliminate render-blocking resources” the same as “Render-blocking requests”?

Yes. Lighthouse 13, which PageSpeed Insights has used since late 2025, folded the old audit into the Render-blocking requests insight. The causes and fixes are the same: defer scripts, load non-critical CSS without blocking and remove files the page doesn’t need.

Why does PageSpeed still show render-blocking files after I installed a cache plugin?

Files you exclude from deferring still block, and so does any CSS the plugin leaves in the head. Some exclusions are right: a script that breaks the site when deferred should stay.

Should I use async or defer?

Use defer for your own scripts and anything that depends on another script, such as jQuery plugins: deferred scripts run in order after the HTML is parsed. Use async only for independent scripts like analytics, which can run in any order.

Can I just inline all my CSS?

Autoptimize’s FAQ answers “probably not”: inlining all CSS makes every HTML page much bigger, and that CSS is sent again with every page view instead of coming from the browser cache. Inline only the rules the first screen needs and load the rest without blocking.

Will fixing render-blocking requests raise my PageSpeed score?

Usually, through faster FCP and LCP. The insight itself isn’t scored; only the five metrics are, and FCP and LCP together make up 35% of the Lighthouse score.

Sources

  1. Render-blocking requests (Lighthouse insight) — Chrome for Developers
  2. Eliminate render-blocking resources — Chrome for Developers
  3. Defer non-critical CSS — web.dev
  4. <script>: The Script element — MDN
  5. Render blocking requests — WP Rocket docs
  6. Page Optimization — LiteSpeed Cache for WordPress docs
  7. Autoptimize — WordPress.org plugin page and FAQ
  8. Defer render-blocking CSS and JavaScript — Shopify.dev

Rather have it done?

The FlashMax team fixes the issues in your report, on a copy first, and shows the before-and-after.

See the speed optimization service

              AMERICANEXPRESSPayPalDISCOVERstripeVISA