Skip to the content
Start free

Asset diet report: scripts and styles each page never uses

The Asset diet report lists, for each type of page on your site, the JavaScript and CSS files it loads and how much of each one it never uses. It is for WordPress owners whose plugins each add their own scripts to every page, so a contact form’s code also loads on the blog and the shop. It is a URSY Pro report that we are building now.

What it checks #

  • Every script and stylesheet loaded on a sample of each page type: home, category, product, post, contact and checkout.
  • Bytes used and unused per file on each page type, measured in a real browser.
  • Which plugin or theme adds each file, worked out from its path, such as /wp-content/plugins/slider/.
  • Files that block the first paint, loaded in the head with no defer or async.
  • Files used on one page type only, like a map script on the contact page, with the pages where it is dead weight.
  • A suggested diet: the exact files to stop loading, per page type, ordered by bytes saved.

Why it matters #

Unused code is one of the 3 usual reasons a site is slow, as the wiki page on why your website is slow explains. Lighthouse, the test built into Chrome, flags every JavaScript file with more than 20 KiB of unused code, and lists stylesheets where removing unused CSS would save 2 KiB or more. Its guide explains that by default a browser must download, parse and process all external stylesheets before it can show the page.

The same guides name WordPress directly. They suggest cutting down or switching the plugins that load unused JavaScript and CSS on your pages. Heavy, blocking files can push back Largest Contentful Paint, one of the Core Web Vitals.

The fix in WordPress is a known one: the wp_dequeue_script function, which removes a script that was queued to load. The hard part is knowing which files to remove on which pages. That is what this report is for.

How the tool will work #

  1. We pick 3 sample pages of each type from your sitemap.
  2. A headless Chrome loads each one, scrolls it and records code coverage for every file.
  3. We group the results by page type and by the plugin that owns each file.
  4. You get a table per page type and, where you approve, the URSY plugin stops the unused files loading on those pages only.
  5. We test again afterwards, so you can see the bytes saved and that nothing broke.

Check it yourself today #

  1. Load one of your pages in Chrome, then open DevTools with F12.
  2. Press Ctrl+Shift+P (Cmd+Shift+P on a Mac), type coverage and choose Show Coverage.
  3. Click the reload button in the Coverage panel. Each file gets a bar: green for used bytes, grey for unused.
  4. Sort by unused bytes. Note the plugin folder in each file’s address.
  5. Repeat on a product page and a blog post, and compare. Files grey on every page are the first to cut.
  6. After you stop a file loading, run the page through the Schema Markup Checker, because some plugins add their structured data with a script, and through the Meta Tag Checker to confirm the title and description survived.

Common problems and how to fix them #

A form plugin loads on every page #

Load it only on pages that hold a form. Many form plugins have a setting for this; if not, dequeue it elsewhere.

A file looks unused but the page breaks without it #

Some code only runs on a click or a scroll. Click through the page while coverage records, then judge.

Two plugins load the same library #

Two sliders or two icon sets often ship the same files. Keep one plugin.

Questions #

Will removing scripts break my site? #

It can, which is why every change is per page type, tested, and undone in one click.

Is unused CSS as bad as unused JavaScript? #

Both cost download time. Stylesheets in the head hold up the first paint, and scripts cost time to run.

Is there a free version? #

The free Page Speed Checker, coming soon, tests one page. This report covers each page type across the site.

Sources #

Updated 23 November 2026 by URSY.com.

Cite this page: Asset diet report: scripts and styles each page never uses. URSY. Updated 26 November 2026. https://ursy.com/pro/asset-diet-report/ · Section links