How to reduce unused JavaScript
JavaScript that is downloaded but never runs still costs bandwidth, parsing and memory on phones. Split bundles, drop dead plugins and load features on demand.
Step by step, with screenshots: Magento and Adobe Commerce performance: what to change first →
Check your own site
Runs this check and the other 186, free, in about 45 seconds.
What a passing site looks like
- Little unused JavaScript is downloadedwarning · −4 ptseffort M
Unused JavaScript
Why it matters. JavaScript is the most expensive thing a page loads — it must be downloaded, parsed and run. Code that never executes still costs all of that on a phone.
- Delay third-party scripts until interaction (WP Rocket "Delay JavaScript", Shopify: audit installed apps).
- Code-split large bundles so each page loads only its own code.
- Remove plugins, apps and tags you no longer use.