Re: Javascript Resources Loading Slow

2009-12-18 Thread Igor Vaynberg
http://markmail.org/thread/44hui777oz7rlg4w

-igor

On Fri, Dec 18, 2009 at 11:02 AM, Jered Myers
 wrote:
> I just converted my code from Wicket 1.4m2 to 1.4.4 and am see performance
> problems with resource load times.  For example, when I load a page that has
> a LinkTree in it, the browser takes a long time (20 - 30 seconds) to load
> "http://localhost:8080/MyProject/resources/org.apache.wicket.markup.html.tree.BaseTree/res/base";.
>  I had a similar problem with a javascript file I was adding like so:
>
> private static final CompressedResourceReference PROTO_JS = new
> CompressedResourceReference(ScriptaculousAjaxBehavior.class,
> "prototype.js");
> ...
> add(JavascriptPackageResource.getHeaderContribution(PROTO_JS));
>
> When I commented these lines out, the problem went away.  Any ideas why this
> is so slow or what I can do to fix it?
>
> Jered
>
> 
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Javascript Resources Loading Slow

2009-12-18 Thread Jered Myers
I just converted my code from Wicket 1.4m2 to 1.4.4 and am see 
performance problems with resource load times.  For example, when I load 
a page that has a LinkTree in it, the browser takes a long time (20 - 30 
seconds) to load 
"http://localhost:8080/MyProject/resources/org.apache.wicket.markup.html.tree.BaseTree/res/base";.  
I had a similar problem with a javascript file I was adding like so:


private static final CompressedResourceReference PROTO_JS = new 
CompressedResourceReference(ScriptaculousAjaxBehavior.class, 
"prototype.js");

...
add(JavascriptPackageResource.getHeaderContribution(PROTO_JS));

When I commented these lines out, the problem went away.  Any ideas why 
this is so slow or what I can do to fix it?


Jered