Skip to main content
All website issues
Speed

Your scripts are not compressed

What this means for your business

Your JavaScript files haven't been compressed to their smallest form. Minification removes whitespace and shortens variable names, reducing file size and cutting the time visitors' browsers spend downloading and parsing scripts.

How to fix it
Easy
15–30 minutes

  1. 1Your JavaScript files contain extra spaces, comments, and long variable names that are helpful for developers but add unnecessary file size for visitors.
  2. 2Run your JavaScript through a free online minifier like JavaScript Minifier (javascript-minifier.com) and replace the file with the output.
  3. 3For ongoing projects, add a build step using a tool like Terser or ESBuild to automatically minify JavaScript before deploying.
  4. 4If you use Cloudflare, turn on "Auto Minify" for JavaScript in the Speed → Optimization section — it compresses your JS files automatically without modifying your source.

On WordPress

WP Rocket and Autoptimize can minify and combine JavaScript files automatically. Enable the "Minify JS" option — it processes your scripts on the fly without permanently modifying them.

On Shopify

Shopify automatically minifies JavaScript when your theme is published. If you have custom JS in your theme's assets folder, name the file with a .min.js suffix to indicate it should be served as-is.

Pro tip: JavaScript minification can reduce file sizes by 30–60%. Like CSS minification, it's a low-risk quick win — enable it through a plugin or CDN setting before investigating harder issues.

Does your site have this problem?

SiteSprout scans your site, tells you which issues you actually have in plain English, and keeps watch so nothing breaks silently.

Scan your site free