Re: Package all CSS and JS

2009-04-11 Thread Alex Objelean
In case of wro4j, css can be merged no matter where they are located: Css url rewriting - after css resources are merged, the relative url will not point any more to a valid location. That is why it is important to overwrite the url's in the css files after merging. This is the most powerful

Re: Package all CSS and JS

2009-04-11 Thread Brill Pappin
Yes, I see your point... by including jquery with two different sets, you actually make it worse because it can't be cached anymore. You're only going to gain a minor advantage if you bundle the whole possible set (for the whole site) in one download, but I doubt it would be worth the

Re: Package all CSS and JS

2009-04-10 Thread Bjoern Tietjens
Hi, how about doing this with some kind of precompilation step? You could manipulate the code with maven or ant befor packing the war having an task combining all js and css in one. Just an idea... Cheers Bjoern Tietjens Am 10.04.2009 um 05:31 schrieb Brill Pappin br...@pappin.ca:

Re: Package all CSS and JS

2009-04-10 Thread Jeremy Thomerson
I think that this response by Igor to another thread was supposed to be on this one. Either way, it fits this one. it is much simpler and more efficient to set proper caching headers. concatenating resources often does not work because different components on different pages contribute

Re: Package all CSS and JS

2009-04-10 Thread Alex Objelean
The problem with merging css is that the backgrounds will not work anymore (in case the images are referenced relatively). But there is a solution for this, check web resource optimizer ( http://code.google.com/p/wro4j/ wro4j ). It performs url rewriting. Also, resources can be located anywhere

Re: Package all CSS and JS

2009-04-10 Thread Brill Pappin
You could likely do that fairly easily, but how do you know which ones are need by which page? For instance page A may not need all the CSS that page B does. - Brill Pappin On 10-Apr-09, at 2:49 AM, Bjoern Tietjens wrote: Hi, how about doing this with some kind of precompilation step?

Re: Package all CSS and JS

2009-04-10 Thread Brill Pappin
Yah, he's right about the caching... so maybe not work it... however the solution someone posted was a ... hmm... Just in Time Resource kind of idea. which would still optimize for whatever page you were on (instead of bundling it all up into one giant file). - Brill Pappin On

Re: Package all CSS and JS

2009-04-10 Thread Brill Pappin
Ahh... forgot about that... It will only work for CSS files that are in the same directory if you want to find other resources like images. Can it be done without doubt but its starting o get more complex than is likely worth the trouble since as Igor pointed out, the browser caches them

Re: Package all CSS and JS

2009-04-10 Thread Igor Vaynberg
my point is that the just in time thing will not work suppose on page A you use jquery and ext on page B you use jquery and yui using this just-in-time composition you will get two resources: jquery+ext and jquery+yui - so you are trading 3 hits for two hits, but transferring jquery twice.

Re: Package all CSS and JS

2009-04-09 Thread Craig Tataryn
On Thu, Apr 9, 2009 at 9:06 AM, Eduardo Nunes esnu...@gmail.com wrote: Hi, Is there a way to tell wicket to package all referenced javascripts together, the same for the css? If there isn't this solution yet, can anyone tell me where should I look for to implement it? You can put your

Re: Package all CSS and JS

2009-04-09 Thread Eduardo Nunes
I think that I didn't explain it right. What I want is that wicket concatenate all included javascripts into one file. Something like wicket:link link.. javascript1.js / link.. javascript2.js / link.. javascript3.js / /wicket:link Generate just one resource with javacript1.js, javacript2.js

Re: Package all CSS and JS

2009-04-09 Thread Eduardo Nunes
link href=... / for the css and script language=javascript src=... / for the javascripts On Thu, Apr 9, 2009 at 11:57 AM, Eduardo Nunes esnu...@gmail.com wrote: I think that I didn't explain it right. What I want is that wicket concatenate all included javascripts into one file. Something like

Re: Package all CSS and JS

2009-04-09 Thread Roman Zechner
Hi Eduardo! I remember there was once a discussion here on the mailing list, I think part of that was http://techblog.molindo.at/2008/08/wicket-interface-speed-up-merging-resources-for-fewer-http-requests.html Roman Eduardo Nunes wrote: link href=... / for the css and script

Re: Package all CSS and JS

2009-04-09 Thread Alex Objelean
Take a look to web resource optimizer (wro4j) project, hosted on google code. It's pretty easy to use: http://code.google.com/p/wro4j/ wro4j Alex Eduardo Nunes wrote: I think that I didn't explain it right. What I want is that wicket concatenate all included javascripts into one file.

Re: Package all CSS and JS

2009-04-09 Thread Brill Pappin
Funny, I was thinking that same thing... in one quick app i was writing, I had ~20 header links! I kept thinking that can't be good :) although I have not done so yet, I think there must be a way to modify or create a resource loader that would generate a buffered version of css (for

Re: Package all CSS and JS

2009-04-09 Thread Brill Pappin
Oh nice... exactly what I was thinking... glad I don't have to write it! - Brill Pappin On 9-Apr-09, at 1:26 PM, Roman Zechner wrote: Hi Eduardo! I remember there was once a discussion here on the mailing list, I think part of that was