Try a few example inputs:
- [TRY] Minify a simple 'hello' function and preserve 'myLastName' variable name.
See Also #
Minify JS is based on UglifyJS2 project by Mihai Bazon.
If you do not want to support Internet Explorer versions 6, 7, or 8, you can disable the Preserve compatibility with IE6-8 option and thus save a couple of bytes in some scripts.
The Display output indented option is useful for debugging purposes. With this option enabled, the output will be indented and thus readable for a human developer. In order to get maximal space savings, however, you need to have this option disabled.
For maximal savings of the minification, enable the Change names of local variables. The minification engine will rename local variables and longer variable names will be shortened. If you want to preserve names of some variables, put their comma-separated list into the Reserved words field.