JavaScript minification is one of those optimizations that sounds simple: make the JavaScript smaller, ship fewer bytes, and your website should be faster.

But there is a little more to it.

If you're working on a production web application, it's useful to understand what minification actually does, what it doesn't do, and where it fits into your build workflow.

What JavaScript minification actually does

JavaScript is normally written to be readable and maintainable.