To make pages smaller and therefore faster to send to users, most major sites reduce files, especially javascript and css files. This operation is usually
- merges files to reduce the number of requests
- removes comments
- removes useless spaces and CR
- changes long variable names to shorter ones
One of the tools for this operation is provided by Google: The Closure Compiler . This is easy to do, and there is no reason to ignore it as soon as you start paying attention to the display speed or your bandwidth.
Some developers may use it to protect their source code, but this is not the most common reason.
Denys seguret
source share