What is Minification?
Minification is not data compression
Minification is not false cryptography – nor is it data compression. The minified code can be directly interpreted as is with no uncompression step needed, and the same interpreter can read the original and the minified sources.
The first tool to perform minification of any sort was JSMin, which removed whitespaces and comments. Douglas Crockford developed it in 2003, and it was followed by the YUI Compressor. Next, Google, in 2009, developed a Closure toolkit, which included a source mapping feature and Closure Inspector (a Firefox extension). Then Uglify JS appeared in 2010, developed by Mihai Bazon. In 2012, the program was rewritten to permit source map support.
Source Mapping and Minification
Source maps permit the display of unminified code from the minified code, using an optimized “mapping” between the two. Joseph Schorr built the first format as part of the Closure Inspector minification project. Updates such as versions 2 and 3 minimized the size of the map files.
How Minifying Code Affects the Web
By reducing the size of various files, web design Springfield MO firms quicken the page loading time and optimize file requests. Therefore, libraries and components of websites and Web applications have been developed.
In addition, some libraries merge multiple script files into one for client download, fostering a modular approach to development.
Modern web browsers and compatible web servers encode content to compress HTML and similar texts. Often, they compress these things into the gzip format.
As you can see, the trend to the minification of code has made the web faster, which benefits all users.