Speed and performance · free, no sign-up
JavaScript Minification Checker
Estimates how much of each script is extra whitespace that a minifier would remove.
Why it matters
Smaller scripts download and start faster, which matters most on phones. Minifying is one of the easiest speed wins, because it changes nothing about how the code works.
How to fix it
- Use a build tool such as esbuild or Terser, or a caching plugin.
- Load the .min.js version of libraries.
- Test the site afterwards, in case a plugin combined files in the wrong order.
What a good result looks like
Scripts have their extra spaces removed. We flag a file when over 10% could be saved from whitespace alone.
Common mistakes
- Serving a development build by mistake, which can be many times larger.
- Minifying by hand or with a regular expression, which can break code.
Questions about the JavaScript Minification Checker
How do you estimate the saving?
We only count whitespace, which is safe to measure. A real minifier also shortens names and removes comments, so it usually saves more than we show.
How do I minify scripts?
Build tools such as Vite and esbuild do it automatically. On WordPress, a performance plugin or your CDN can do it, but test the site afterwards.
Check everything at once
Run our other instant checks on your site in one report.
Full SEO check-up