Code minification (also called code minimization or code compression) removes all unnecessary characters from the source code. This process includes removing all unwanted white space characters, newline characters, comments, etc. Code minification does not affect the functionality of the source code. It, however, improves load time (and your web app’s performance) because you reduce the size of the file for download.
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.