Martin Gainty wrote:
Thanks Jeromy-
I would utilise the rhino javasript utilities to compress (java with
-c option) all of your js files
http://www.dojotoolkit.org/docs/shrinksafe
e.g.
java -jar custom_rhino.jar -c infile.js > outfile.js 2>&1
Rhino jars are available for download at http://www.mozilla.org/rhino/
I have'nt thoroughly tested the compressed js load scenarios with
Struts but under Apache Browser load times decrease by 50% or greater
(as demonstrated by FireFox)
HTH
Martin--
Hi Martin, yeah, I always do this for production code too. It's also a
handy way to identify javascript errors as build time.
I use YUI Compressor as it uses Rhino and also compresses CSS. The main
objective of the latter is to concat and compress to reduce http gets.
http://developer.yahoo.com/yui/compressor/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]