How to minify your JavaScript files and why you shouldn’t wait

It is common in fast responsive web apps to minify JavaScript files to reduce file size and increase app performance.

What is it?
Minification means to remove all unnecessary characters (e.g. comments, spacing, line breaks, shortening names, etc.) from a JavaScript file so that the resulting file behaves the same but is much more compact.

Why should you minify your JavaScript files?
Here are some benefits:
– Faster load speed
– Small files and cache size
– Less demand on your web server
– Uses less bandwidth especially on mobile devices

How to minify your JavaScript files with two popular tools: Continue reading