Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Render-blocking scripts and CSS: how to find and fix them

SEO-259Low impactOther toolBy FunnelGuardPublished Updated
On this page

What this issue is

A browser builds a page by reading your HTML from top to bottom. When it meets a stylesheet or a plain <script> tag in the <head>, it pauses drawing the page until that file has been downloaded and, for scripts, run. These files are called render-blocking resources.

Stylesheets block rendering by design, because the browser does not want to show unstyled content. Scripts block because they might change the page while it is being built. The problem starts when files that are not needed for the first screen still sit in the way.

Common culprits: large theme or plugin stylesheets, tag manager and chat widget snippets placed in the head, jQuery and slider libraries, and web font CSS files.

Why it costs you leads or sales

While blocking files load, visitors see a blank or half-drawn page. On a slow mobile connection that wait can be long enough for them to leave before your form or buy button appears. It also pushes back Largest Contentful Paint (LCP), the time until the main content shows, which is a Core Web Vitals metric Google uses as a page experience signal.

The impact is usually modest on its own, so we rate it low. It adds up when combined with heavy pages, many third-party scripts and slow servers.

How a blocking file delays your lead form
  1. HTML starts loadingBrowser reads the head
  2. Blocking CSS/JSLarge files must download and run first
  3. First paintPage stays blank until now
  4. Form or CTA visibleSome visitors have already left

The browser stops at the blocking file, so everything after it waits.

Blocking files versus time to first paintExample numbers
Blocking files versus time to first paint (example)Before: 6 blocking files: 3.8 seconds; After: 1 critical CSS file: 1.9 seconds0133.81.9Before: 6 blocking fi…After: 1 critical CSS…seconds

Example: illustrative numbers on a slow mobile connection, not measured data.

How to check if your site has it

Find render-blocking resources
  1. Run PageSpeed Insights

    Go to pagespeed.web.dev, enter a key page such as your landing page, and choose the Mobile tab.

  2. Open the diagnostics

    Look for the audit named 'Render blocking requests' (older reports call it 'Eliminate render-blocking resources'). It lists each file and its estimated delay.

  3. Cross-check in Chrome DevTools

    Open DevTools, go to the Network tab, reload, and look at the waterfall. Files requested before the first paint with a long bar are likely blockers. The Performance panel also marks render-blocking requests.

  4. Check the source

    View page source and look in the head for <link rel="stylesheet"> and <script src> tags without defer, async or type="module".

How to fix it

The general approach is the same everywhere: load scripts without blocking, load only the CSS needed for the first screen up front, and remove what you do not use.

Which script attribute to use
AttributeBehaviourUse for
deferDownloads in parallel, runs after the HTML is parsed, keeps orderYour own scripts and libraries that depend on each other
asyncDownloads in parallel, runs as soon as ready, order not guaranteedIndependent scripts such as analytics
type="module"Deferred by defaultModern JavaScript bundles
Non-blocking script and deferred stylesheethtml
<!-- Script: does not block rendering -->
<script src="/js/app.js" defer></script>

<!-- Non-critical CSS: loads without blocking, applies when ready -->
<link rel="stylesheet" href="/css/non-critical.css" media="print" onload="this.media='all'">
<noscript><link rel="stylesheet" href="/css/non-critical.css"></noscript>
Fix by platform
  1. Use your performance plugin

    If you use a plugin such as WP Rocket, LiteSpeed Cache, Autoptimize or Perfmatters, enable its options to defer JavaScript and to optimise or delay CSS. Option names vary by plugin.

  2. Test after each change

    Check your forms, menus and checkout after enabling each option. Deferring jQuery can break scripts that run inline.

  3. Remove unused plugins

    Each plugin can add its own CSS and JS to every page. Remove ones you do not need, or unload their assets on pages that do not use them.

Page head before and after

Before

  • Five stylesheets and four scripts in the head
  • No defer or async attributes
  • Blank screen until all files finish

After

  • Critical CSS inline, rest loaded without blocking
  • Scripts use defer or async
  • Content appears while other files load

How to confirm it's fixed

After your changes
  • Re-run PageSpeed Insights on mobile and check the render-blocking audit shows fewer or smaller items
  • Compare LCP before and after
  • Load the page in a private window and check nothing looks unstyled for a moment
  • Submit your lead form and check the email arrives
  • Check menus, sliders, cookie banner and chat button still work
  • Confirm analytics and ad conversion events still fire in each tool's debug or real-time view

How to prevent it happening again

Habits that keep pages fast
  • Test key pages in PageSpeed Insights after every theme, plugin or tag change
  • Ask for defer or async whenever you add a new script
  • Review installed plugins and apps every quarter and remove unused ones
  • Keep a list of tags in your tag manager and who asked for each
  • Watch field data in Google Search Console's Core Web Vitals report

How FunnelGuard handles this

FunnelGuard does not check for render-blocking scripts and CSS today. It is a possible future check, not something it reports on now.

What FunnelGuard does do is run your real customer journeys on a schedule, such as lead forms, checkouts and booking buttons. It checks each step, the tracking hits sent to ad and analytics platforms, and whether test leads reach your inbox and CRM. If a script change breaks a form or stops a tag from firing, that kind of failure is what it re-checks from a second region before sending one alert with a screenshot and a likely cause.

To watch for render-blocking resources yourself, run PageSpeed Insights on your key pages after each change, and keep an eye on the Core Web Vitals report in Google Search Console. The free read-only website audit and the Free plan (1 site, 2 journeys, daily checks, no card) can help you confirm that your funnel still works after you optimise scripts.

Questions people ask

What are render-blocking scripts and CSS?

They are files in the head of your page that the browser must download, and for scripts run, before it can show any content. Stylesheets and scripts without defer or async are the usual cause. They delay first paint and Largest Contentful Paint.

How do I eliminate render-blocking resources?

Add defer or async to scripts that are not needed for the first screen, inline the critical CSS, and load other CSS without blocking. Remove files you do not use. Then re-test in PageSpeed Insights.

What is the difference between async and defer?

Both download the script without blocking the page. Defer runs scripts in order after the HTML is parsed, while async runs each script as soon as it is ready, in any order. Use defer for scripts that depend on each other and async for independent ones like analytics.

Do render-blocking resources hurt SEO?

They can, indirectly. They slow LCP, which is part of Core Web Vitals and Google's page experience signals. The effect is usually small compared with content relevance, so treat it as a refinement.

Why does PageSpeed Insights say 'Render blocking requests'?

It means files such as stylesheets or scripts in the head delayed the first paint. The report lists each one with an estimated saving. Fix the largest ones first.

How do I fix render-blocking JavaScript in WordPress?

Use a performance plugin such as WP Rocket, LiteSpeed Cache or Autoptimize and enable its defer JavaScript option. Test forms and menus after each change, because deferring can break inline scripts that depend on jQuery.

Is it safe to defer Google Tag Manager or analytics?

Load them with async rather than blocking, which the standard GTM snippet already does. Delaying them for many seconds can lose data from visitors who leave quickly, so test that conversion events still fire.

Does FunnelGuard check for render-blocking scripts?

No. FunnelGuard does not check this yet. It is a possible future check, so use PageSpeed Insights and Search Console to monitor it.

Does FunnelGuard catch this?

Other tool

Needs a different kind of tool.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.