Skip to the content
Start free

Many render-blocking files

Many scripts and stylesheets must load before the browser can show anything, which delays the first view of the page.

Medium priority Speed and caching

Why it matters #

A stylesheet in the head, or a script without defer or async, makes the browser wait until it has downloaded and run it before drawing the page. Each one adds delay, most of all on a slow phone connection.

This shows up in Google's speed measures as a later First Contentful Paint and Largest Contentful Paint. Visitors look at a blank screen for longer, and some leave before the page appears.

How to fix it #

Add defer to scripts that do not need to run before the page shows. Join small stylesheets into one, put the few styles needed for the top of the page inline, and load the rest later.

On WordPress, performance and caching plugins can defer scripts and combine styles. Test the page after each change, because deferring the wrong script can break a menu or the basket. Check with the Page Weight Checker and the Page Speed Checker.

What it looks like, and fixed #

The problem
<head>
  <link rel="stylesheet" href="/css/slider.css">
  <link rel="stylesheet" href="/css/icons.css">
  <script src="/js/jquery.js"></script>
  <script src="/js/slider.js"></script>
  <script src="/js/reviews.js"></script>
</head>

Every file must download, and every script must run, before the browser draws anything.

Fixed
<head>
  <style>/* the few styles needed for the top of the page */</style>
  <link rel="stylesheet" href="/css/site.css">
  <script src="/js/jquery.js" defer></script>
  <script src="/js/slider.js" defer></script>
  <script src="/js/reviews.js" defer></script>
</head>

One stylesheet, and scripts with defer so they run in order after the page is read.

Fix it with your AI assistant #

Paste this into ChatGPT, Claude, Gemini or your coding agent. Fill in the words in [square brackets] first. It checks before it changes anything, changes only this, and tells you how to prove it worked.

Your instruction for the AI
The page [the page address] on my website [your website address], built with [your platform, e.g. WordPress with a caching plugin], has many render-blocking files. First read the <head> of the page, or ask me to paste it, and list every stylesheet and every script without defer or async, with its source (theme, plugin or outside service). Say which ones the first screen really needs. Then propose changes: add defer to scripts that can wait (defer keeps their order), combine small stylesheets, inline only the few styles needed for the first screen, and load styles for things lower down later. Rules: back up first, make one change at a time, warn me before deferring a script needed at once, test menus, sliders, forms and checkout after each step, do not remove tracking or consent scripts without my yes, and keep page addresses the same. Give exact code or settings and where they go. Then tell me to re-check with the URSY.com Page Weight Checker at ursy.com/page-weight-checker/.

We find the problems, and help you fix them

  1. Check Run a free tool or the full audit.
  2. Fix it with your AI Download your AI Fix Pack and drop it into ChatGPT, Claude or Gemini. A free account is enough.
  3. Re-check Come back, check again, and watch each fix turn green.

How the AI Fix Pack works, with a sample to download

Fix it on your platform #

WordPress

Caching and performance plugins can defer scripts and combine or delay styles. Switch on one option at a time and test menus, sliders, forms and the basket after each.

Shopify

Theme code should load scripts with defer. Apps that add scripts to the head are a common cause; remove apps you no longer use.

A hand-made site

Add defer to scripts that do not need to run before the page shows, and combine small stylesheets into one.

Check it is fixed #

Run the URSY.com Page Weight Checker again: fewer files should be listed as render-blocking. The Page Speed Checker should show an earlier First Contentful Paint.

Official source #

Chrome for Developers: Eliminate render-blocking resources

Questions #

What is the difference between defer and async?

Both download the script without stopping the page. Defer runs scripts in order after the HTML is read; async runs each one as soon as it arrives, in any order.

Can deferring scripts break my site?

Yes, if a script is needed straight away or another script depends on it. That is why you change one at a time and test.

More problems in Speed and caching

See every problem in the library

For AI assistants and developers: Instructions for AI · Developers · How to cite URSY.com