You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Neil Aggarwal <ne...@JAMMConsulting.com> on 2009/01/09 23:05:36 UTC

[S2] Using ajax head tag makes entire application slow

Hello all:

When I include this tag in the head tag of
my layout: 
<s:head theme="ajax"/>

My webapp seems to take about a second per page
load.

If I remove that tag, things are lightning fast.

I only need the datetimepicker struts tag, nothing
else.

Is there a way to make this faster?

Thanks,
	Neil

--
Neil Aggarwal, (832)245-7314, www.JAMMConsulting.com
Eliminate junk email and reclaim your inbox.
Visit http://www.spammilter.com for details. 


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


Re: [S2] Using ajax head tag makes entire application slow

Posted by Musachy Barroso <mu...@gmail.com>.
For that and other(many) reasons we are deprecating the Dojo plugin in
2.1 (where there are more options to tweak loading and caching of the
Dojo files)

musachy

On Mon, Jan 12, 2009 at 10:25 AM, Neil Aggarwal <ne...@jammconsulting.com> wrote:
> Musachy:
>
> Thanks for the response. It seems strange the
> Struts-based approach is so inefficient that
> we have to look at an outside solution.
>
> Thanks,
>        Neil
>
> --
> Neil Aggarwal, (832)245-7314, www.JAMMConsulting.com
> Eliminate junk email and reclaim your inbox.
> Visit http://www.spammilter.com for details.
>
>> -----Original Message-----
>> From: Musachy Barroso [mailto:musachy@gmail.com]
>> Sent: Monday, January 12, 2009 9:18 AM
>> To: Struts Users Mailing List
>> Subject: Re: [S2] Using ajax head tag makes entire application slow
>>
>> It is loading a gazillion javascript files, which should be cached,
>> but still. If you only need a date picker, I would *strongly* advise
>> you to pick a small library that already has one builtin. I use this
>> one:
>>
>> http://docs.jquery.com/UI/Datepicker
>>
>> but there is a bunch of them.
>> musachy
>>
>> On Mon, Jan 12, 2009 at 9:57 AM, Neil Aggarwal
>> <ne...@jammconsulting.com> wrote:
>> > Hello:
>> >
>> > I forgot to mention that I am using     Struts 2.0.14
>> > with the Tiles plugin on a CentOS 5 server.
>> >
>> > Any ideas why this is so slow?
>> >
>> > Thanks,
>> >        Neil
>> >
>> > --
>> > Neil Aggarwal, (832)245-7314, www.JAMMConsulting.com
>> > Eliminate junk email and reclaim your inbox.
>> > Visit http://www.spammilter.com for details.
>> >
>> >> -----Original Message-----
>> >> From: Neil Aggarwal [mailto:neil@jammconsulting.com]
>> >> Sent: Friday, January 09, 2009 4:06 PM
>> >> To: 'Struts Users Mailing List'
>> >> Subject: [S2] Using ajax head tag makes entire application slow
>> >>
>> >> Hello all:
>> >>
>> >> When I include this tag in the head tag of
>> >> my layout:
>> >> <s:head theme="ajax"/>
>> >>
>> >> My webapp seems to take about a second per page
>> >> load.
>> >>
>> >> If I remove that tag, things are lightning fast.
>> >>
>> >> I only need the datetimepicker struts tag, nothing
>> >> else.
>> >>
>> >> Is there a way to make this faster?
>> >>
>> >> Thanks,
>> >>       Neil
>> >>
>> >> --
>> >> Neil Aggarwal, (832)245-7314, www.JAMMConsulting.com
>> >> Eliminate junk email and reclaim your inbox.
>> >> Visit http://www.spammilter.com for details.
>> >>
>> >>
>> >>
>> ---------------------------------------------------------------------
>> >> 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
>> >
>> >
>>
>>
>>
>> --
>> "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
>
>



-- 
"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


RE: [S2] Using ajax head tag makes entire application slow

Posted by Neil Aggarwal <ne...@JAMMConsulting.com>.
Musachy:

Thanks for the response. It seems strange the
Struts-based approach is so inefficient that
we have to look at an outside solution.

Thanks,
	Neil

--
Neil Aggarwal, (832)245-7314, www.JAMMConsulting.com
Eliminate junk email and reclaim your inbox.
Visit http://www.spammilter.com for details.  

> -----Original Message-----
> From: Musachy Barroso [mailto:musachy@gmail.com] 
> Sent: Monday, January 12, 2009 9:18 AM
> To: Struts Users Mailing List
> Subject: Re: [S2] Using ajax head tag makes entire application slow
> 
> It is loading a gazillion javascript files, which should be cached,
> but still. If you only need a date picker, I would *strongly* advise
> you to pick a small library that already has one builtin. I use this
> one:
> 
> http://docs.jquery.com/UI/Datepicker
> 
> but there is a bunch of them.
> musachy
> 
> On Mon, Jan 12, 2009 at 9:57 AM, Neil Aggarwal 
> <ne...@jammconsulting.com> wrote:
> > Hello:
> >
> > I forgot to mention that I am using     Struts 2.0.14
> > with the Tiles plugin on a CentOS 5 server.
> >
> > Any ideas why this is so slow?
> >
> > Thanks,
> >        Neil
> >
> > --
> > Neil Aggarwal, (832)245-7314, www.JAMMConsulting.com
> > Eliminate junk email and reclaim your inbox.
> > Visit http://www.spammilter.com for details.
> >
> >> -----Original Message-----
> >> From: Neil Aggarwal [mailto:neil@jammconsulting.com]
> >> Sent: Friday, January 09, 2009 4:06 PM
> >> To: 'Struts Users Mailing List'
> >> Subject: [S2] Using ajax head tag makes entire application slow
> >>
> >> Hello all:
> >>
> >> When I include this tag in the head tag of
> >> my layout:
> >> <s:head theme="ajax"/>
> >>
> >> My webapp seems to take about a second per page
> >> load.
> >>
> >> If I remove that tag, things are lightning fast.
> >>
> >> I only need the datetimepicker struts tag, nothing
> >> else.
> >>
> >> Is there a way to make this faster?
> >>
> >> Thanks,
> >>       Neil
> >>
> >> --
> >> Neil Aggarwal, (832)245-7314, www.JAMMConsulting.com
> >> Eliminate junk email and reclaim your inbox.
> >> Visit http://www.spammilter.com for details.
> >>
> >>
> >> 
> ---------------------------------------------------------------------
> >> 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
> >
> >
> 
> 
> 
> -- 
> "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


Re: [S2] Using ajax head tag makes entire application slow

Posted by Musachy Barroso <mu...@gmail.com>.
It is loading a gazillion javascript files, which should be cached,
but still. If you only need a date picker, I would *strongly* advise
you to pick a small library that already has one builtin. I use this
one:

http://docs.jquery.com/UI/Datepicker

but there is a bunch of them.
musachy

On Mon, Jan 12, 2009 at 9:57 AM, Neil Aggarwal <ne...@jammconsulting.com> wrote:
> Hello:
>
> I forgot to mention that I am using     Struts 2.0.14
> with the Tiles plugin on a CentOS 5 server.
>
> Any ideas why this is so slow?
>
> Thanks,
>        Neil
>
> --
> Neil Aggarwal, (832)245-7314, www.JAMMConsulting.com
> Eliminate junk email and reclaim your inbox.
> Visit http://www.spammilter.com for details.
>
>> -----Original Message-----
>> From: Neil Aggarwal [mailto:neil@jammconsulting.com]
>> Sent: Friday, January 09, 2009 4:06 PM
>> To: 'Struts Users Mailing List'
>> Subject: [S2] Using ajax head tag makes entire application slow
>>
>> Hello all:
>>
>> When I include this tag in the head tag of
>> my layout:
>> <s:head theme="ajax"/>
>>
>> My webapp seems to take about a second per page
>> load.
>>
>> If I remove that tag, things are lightning fast.
>>
>> I only need the datetimepicker struts tag, nothing
>> else.
>>
>> Is there a way to make this faster?
>>
>> Thanks,
>>       Neil
>>
>> --
>> Neil Aggarwal, (832)245-7314, www.JAMMConsulting.com
>> Eliminate junk email and reclaim your inbox.
>> Visit http://www.spammilter.com for details.
>>
>>
>> ---------------------------------------------------------------------
>> 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
>
>



-- 
"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


RE: [S2] Using ajax head tag makes entire application slow

Posted by Neil Aggarwal <ne...@JAMMConsulting.com>.
Hello:

I forgot to mention that I am using	Struts 2.0.14
with the Tiles plugin on a CentOS 5 server.

Any ideas why this is so slow?

Thanks,
	Neil

--
Neil Aggarwal, (832)245-7314, www.JAMMConsulting.com
Eliminate junk email and reclaim your inbox.
Visit http://www.spammilter.com for details.  

> -----Original Message-----
> From: Neil Aggarwal [mailto:neil@jammconsulting.com] 
> Sent: Friday, January 09, 2009 4:06 PM
> To: 'Struts Users Mailing List'
> Subject: [S2] Using ajax head tag makes entire application slow
> 
> Hello all:
> 
> When I include this tag in the head tag of
> my layout: 
> <s:head theme="ajax"/>
> 
> My webapp seems to take about a second per page
> load.
> 
> If I remove that tag, things are lightning fast.
> 
> I only need the datetimepicker struts tag, nothing
> else.
> 
> Is there a way to make this faster?
> 
> Thanks,
> 	Neil
> 
> --
> Neil Aggarwal, (832)245-7314, www.JAMMConsulting.com
> Eliminate junk email and reclaim your inbox.
> Visit http://www.spammilter.com for details. 
> 
> 
> ---------------------------------------------------------------------
> 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


Re: [S2] Using ajax head tag makes entire application slow

Posted by "matt.payne" <ma...@gmail.com>.
You are paying the dojo penalty.  
Check out the "net" usage in firebug plugin for firefox.  Your 30k request
just became a 500k request by turning this on.

I use ajax, but none of the built in functionality.  jquery ftw

Matt


Neil Aggarwal wrote:
> 
> Hello all:
> 
> When I include this tag in the head tag of
> my layout: 
> <s:head theme="ajax"/>
> 
> My webapp seems to take about a second per page
> load.
> 
> If I remove that tag, things are lightning fast.
> 
> I only need the datetimepicker struts tag, nothing
> else.
> 
> Is there a way to make this faster?
> 
> Thanks,
> 	Neil
> 
> --
> Neil Aggarwal, (832)245-7314, www.JAMMConsulting.com
> Eliminate junk email and reclaim your inbox.
> Visit http://www.spammilter.com for details. 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/-S2--Using-ajax-head-tag-makes-entire-application-slow-tp21381421p21416645.html
Sent from the Struts - User mailing list archive at Nabble.com.


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