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--
----- Original Message -----
From: "Jeromy Evans" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <user@struts.apache.org>
Sent: Saturday, April 26, 2008 9:35 AM
Subject: Re: OGNL/Freemarker Performance
Matthew Seaborn wrote:
In answer (in part) to my own question:
· By removing the *validate=”true”* from my form tag cut over two seconds
from the page render time. I loose the client side validation, but it is
worth it.
· By changing the head tag’s theme from “ajax” to “xhtml” cut down on a
large number of javascript files being downloaded which spread up the
page load by a couple of seconds again, although it had little effect on
the page render time.
It is now much faster, if not exactly ‘snappy’. Anyone got any other good
optimisations tips?
If you're using 2.0.x and any of the dojo widgets, definitely do this:
http://cwiki.apache.org/S2WIKI/creating-a-custom-dojo-profile-for-struts-20x.html
Host all of your static files in apache, not tomcat or other container.
Makes a huge difference.
Also install the YSlow plugin for firefox for a few explanations of the
poor performance and recommended improvements.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]