struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Don Brown" <donald.br...@gmail.com>
Subject Re: [s2] Struts head tag KILLS (> 10s) page load time
Date Fri, 21 Sep 2007 03:28:20 GMT
Musachy, has this been fixed in 2.1?  Are the number of requests
happening because we are using Dojo's lazy import feature?

Don

On 9/21/07, Musachy Barroso <musachy@gmail.com> wrote:
> Only on 2.1 Frank, if you set cache="true" it will use a custom build
> that includes the files needed by the S2 widgets. The first download
> will be big but it will be cached by the browser.
>
> To the OP: Are you using ajax? if not, don't set theme="ajax" on head.
>
> regards
> musachy
>
> On 9/20/07, Frank W. Zammetti <fzlists@omnytex.com> wrote:
> > If Dojo is being used for AJAX in this case, that's my guess.  I know
> > from experience that Dojo, can issue a TON of requests even if you think
> > your only loading a small portion of it.  Assuming this guess is
> > correct, Musachy, does S2 use a custom build of Dojo?  If not, that
> > might be worth considering.
> >
> > Frank
> >
> > --
> > Frank W. Zammetti
> > Founder and Chief Software Architect
> > Omnytex Technologies
> > http://www.omnytex.com
> > AIM/Yahoo: fzammetti
> > MSN: fzammetti@hotmail.com
> > Author of "Practical Ajax Projects With Java Technology"
> >   (2006, Apress, ISBN 1-59059-695-1)
> > and "JavaScript, DOM Scripting and Ajax Projects"
> >   (2007, Apress, ISBN 1-59059-816-4)
> > Java Web Parts - http://javawebparts.sourceforge.net
> >   Supplying the wheel, so you don't have to reinvent it!
> >
> > chengas123 wrote:
> > > Hi,
> > > I am working on a Struts 2 page and page load times are way too high.  I
> > > tracked it down to the Struts head tag, which I have as follows: <s:head
> > > theme="ajax" />
> > > Without the tag, my page issues 3 requests and takes 453ms to load.  With
> > > the tag, the page issues 54 requests taking 12.24s to load.
> > > Is there something I am doing wrong here?
> > >
> > > Thanks,
> > > Ben
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
> >
>
>
> --
> "Hey you! Would you help me to carry the stone?" Pink Floyd
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message