Andrea Franz wrote: > On 11/6/07, Andrea Otto <[EMAIL PROTECTED]> wrote: >> Hi all, >> I noticed that my sites losts a lot of time loading js e css file. I >> searched for a solution and I found this great rails plugin: >> http://www.artweb-design.de/2007/4/13/rails-plugin-blazing-fast-page-loads-through-bundled-css-and-javascript >> >> but I don't know how can I use it in radiant. >> > > I usually create a radiant page called javascripts that loops through > its children...each children it's a js page...then from my layout a > call only one js file (/javascripts) that contains all my js code. It > should be cool to add a new Filter that use jsminifier to compress all > the code...what do you think?
Normally I take js & css as separated static file. I use radiant as cms for my clients... and so I prefer to leave basic layout css and js file not editable. :D jsminifier is only a small compressing "utility"... it clear spacing and unusefull chars only. The real plus about using the plugin I've posted before is that it gzip files on the fly! :D Take a look at this site: http://www.indiaandmore.com I have: 12kb xhtml code 14kb css code 170kb image file (huge, I know :D but are the same for all the site) 25kb swf (I use sfir for graphical texts) 174kb of js file!!! With that plugin I think it could be shrinked at 20/30 kb size with ease... -- Posted via http://www.ruby-forum.com/. _______________________________________________ Radiant mailing list Post: [email protected] Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
