Obfuscating and reducing JavaScript using Trinidad plugin
Posted by Mike Haller
on Tuesday, July 31. 2007
at 00:00
in Java
Apache MyFaces Trinidad's maven-javascript-plugin can be used to obfuscate and reduce JavaScript source code.I let the plugin work on the JavaScript files coming with Mozilla Firefox 2, a total of 1.4 MB of source code.
The resulting files were reduced to 644 kilobyte.
I'll show you how to set up and run the
maven-javascript-plugin. As your faces project might have a lot of JavaScript, this little helper could get handy some day.