Code minification (also known as code minimization or code compression) is the process of removing all unnecessary characters from source code. This procedure entails removing all unnecessary white space characters, newline characters, comments, and so on. The functionality of the source code is unaffected by code minification. It does, however, improve load time (and the performance of your web app) because you reduce the size of the file for download.
Table of Contents
Bonus Tool (To Discover the Best Minification Tool for You)
It shows the aggregated statistics on the general level of compression in four of the tools covered above (namely JSMin, Dojo ShrinkSafe, YUI Compressor, and Packer).
Which is your favorite minification tool? Add it in the comment section below.