Re: JS/CSS automatic concatenation and compression

2009-10-04 Thread robust solution
Dear mark, You are highlighting the main problem of concatenation. but even a selective concatenation is not very easy. let us take the example of prototype and scriptacuouls, sometimes we need -only prototype -prototype with some scriptaculous files as when building an autocomplete through aja

Re: JS/CSS automatic concatenation and compression

2009-10-04 Thread mark_story
Concatenating all JS files into one file is not ideal or optimal. Say for example that you are using jQuery + all of jQuery UI + page specific Javascript. Since you are gluing all the files together, on each new page users will need to redownload all of the library code in addition to the page s

Re: JS/CSS automatic concatenation and compression

2009-10-04 Thread j0n4s.h4rtm...@googlemail.com
Hello, my design idea would be like sql transaction control. This is how you "hack" helpers for additional features: http://cakebaker.42dh.com/2008/11/07/an-idea-for-hacking-core-helpers/ Now the result would look something like this: Before: css('cake.generic')?> css('app.gener

Re: JS/CSS automatic concatenation and compression

2009-10-04 Thread robust solution
Dear Miles, your post in your blog is he best as a starting point. But, really I prefer to follow the firebug advices where they prefer to minimize the number of style sheets and the number of javascript files, and they also prefer to make gzipped whenever possible (currently most of the browsers

Re: JS/CSS automatic concatenation and compression

2009-10-03 Thread Miles J
@robust - Thanks for the link plug :] Talking more about your point of "concatenation". I personally am against it, mainly because certain pages use certain stylesheets. So if you join all stylesheets into one, some of the stylesheets that dont belong in a certain page may overwrite CSS that you

Re: JS/CSS automatic concatenation and compression

2009-10-03 Thread robust solution
Dear Davit Barbakadze, I think none of the suggested solutions for this problem is fair enough because the solution should do the following -all the css links in the head section should be concatenated and minified into a single file then gzipped then cached on the server -the same for the js link

Re: JS/CSS automatic concatenation and compression

2009-10-03 Thread Sam Sherlock
Matt Curry Asset Pluginhttp://github.com/mcurry/asset - S 2009/10/3 schneimi > > Hi, > > I do this aside from CakePHP, not automatically but with one click in > eclipse. > > This tutorial I wrote might be interesting for you: > > http://schneimi.wordpress.com/2009/04/30/speed-up-your-website-w

Re: JS/CSS automatic concatenation and compression

2009-10-03 Thread schneimi
Hi, I do this aside from CakePHP, not automatically but with one click in eclipse. This tutorial I wrote might be interesting for you: http://schneimi.wordpress.com/2009/04/30/speed-up-your-website-with-one-click-in-eclipse/ Regards, Michael On 3 Okt., 11:29, Davit Barbakadze wrote: > I wond

JS/CSS automatic concatenation and compression

2009-10-03 Thread Davit Barbakadze
I wonder whether there already written plugin or component which automatically concatenates all js and css files used (separately of course), compresses them and places them onto corresponng place in the layout? So that in the end, for example, no matter how many js files were included, in the he