4 ms·
closure kicks uglify for size when compiling with advanced optimisations.
by lennel 13y ago
closure kicks uglify for size when compiling with advanced optimisations.
- Kudos 13y agoI found that the advanced optimisations broke our Javascript when I compared the two a couple of years back. We weren't interested in rewriting our Javascript to make it compatible with the Closure.
- lennel 13y agoThe thing that will break your code is this type of notation this['function'] since the compiler can have no idea what renaming should apply. There are aspects of the library that lets you expose public apis. I can really recommend the compiler in AO mode, the type saving is insane (75% reduction in file size) and type checking is sweet