I am a Google Maps API (javascript) developer. I have noticed that Google uses a Javascript minifier that has the following features:
I have not found in the whole internet a Javascript minifier with those features. Anyone knows one?
UglifyJS is one of the most popular JavaScript minification tools. It can parse, minify and compress JavaScript code. Besides, the tool generates a source map file while compressing to track back to your original code.
JavaScript minification tools will reduce file sizes, thus improving web page performance as well as enhancing the code's presentation.
How Minification Works. Minification works by analyzing and rewriting the text-based parts of a website to reduce its overall file size. Minification extends to scripts, style sheets, and other components that the web browser uses to render the site. Minification is performed on the web server before a response is sent ...
Minification refers to the process of removing unnecessary or redundant data without affecting how the resource is processed by the browser - e.g. code comments and formatting, removing unused code, using shorter variable and function names, and so on. See preprocessing & context-specific optimizations to learn more.
Google has now opened up the minifier they use along with some other internal javascript goodies.
It's all under the name "Closure Tools" and was announced earlier this month.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With