Do you know tools such as JAWR which can take several CSS or js files and put them in one file using some configurations? I tried it with Grails for example... Maybe it could help or give some ideas at leat...
https://jawr.dev.java.net/ regards Pascal On Thu, Nov 5, 2009 at 6:56 PM, Marius Dumitru Florea < mariusdumitru.flo...@xwiki.com> wrote: > Jerome Velociter wrote: > > Hi Thibaul, all > > > > Something easy to do that would contribute to reduce the number of CSS > > files is to concatenate all the WYSIWYG CSS files from the various > > plugins at build time (there are more than 10 AFAIK). Marius, have you > > looked into this? Do you know if this could be done in the 2.1 timeframe > ? > > There are I think three steps to be taken in order to minimize the CSS > load: > > 1) expand @import url('someURL'); > 2) concatenate CSS files > 3) minify the resulted CSS file > > So far I haven't found a tool to expand the CSS import declaration. > Maybe I could write a small maven plugin for this. > > I think we can adapt to maven what is presented in this article > > http://www.samaxes.com/2009/05/combine-and-minimize-javascript-and-css-files-for-faster-loading/ > in order to achieve the last two steps. > > Marius > > > > > Note that the target of 1 CSS and 1 JS is pretty challenging for XWiki > > as we are also making it a modular software where CSS and JS extensions > > can be conditionally loaded on some (not all) of the pages. Something to > > investigate for JavaScript extensions could be a dynamic JS loading > > mecanism, a la dojo > > ( > http://dojocampus.org/content/2008/10/09/dojo-module-packaging-and-loading/ > ) > > > > Jerome. > > > > PS: I put devs in copy as this is more a developer topic. > > > > On 11/5/09 5:28 PM, Thibaut Camberlin wrote: > >> Hi all, > >> > >> Page Loading time is a very important criteria when developing a web > site. > >> According to a recent > >> survey< > http://www.webdesignerwall.com/general/users-place-more-weight-on-design/ > >more > >> than half people would drive away from a site with slow loading pages. > >> > >> There are several interesting issues that could be implemented to > >> substantially improve page loading time in XWiki. > >> > >> Number one is aggreation of CSS and JS files in order to reduce HTTP > >> requests. (For info, we have a total of 25 external CSS and JS files on > a > >> basic XWiki install when in the best world we would have just 2 - 1 CSS > and > >> 1 JS) > >> > >> Someone interrested in working on this with me ? > >> > > > > _______________________________________________ > > users mailing list > > us...@xwiki.org > > http://lists.xwiki.org/mailman/listinfo/users > _______________________________________________ > devs mailing list > devs@xwiki.org > http://lists.xwiki.org/mailman/listinfo/devs > _______________________________________________ devs mailing list devs@xwiki.org http://lists.xwiki.org/mailman/listinfo/devs