🚀 Launch countdown

9 December 2026

PageSpeed

Reduce Unused JavaScript

JavaScript code downloaded on the page that isn’t executed during load.

Why it matters

Unused JavaScript wastes bandwidth and adds parse and compile overhead on the visitor’s device before or during interaction.

How to fix it

  1. Use code splitting so pages load only the bundles they need.
  2. Load interactive widgets or features on demand or after user interaction.
  3. Scope third-party scripts to pages that use them rather than loading globally.
  4. Start by trimming or splitting the largest script chunks.

Where to find it

This finding is reported in the PageSpeed tab, and appears in Findings under the matching severity.

A term you don't recognise is defined in the glossary.

Other pagespeed findings

Findings library, by category.