WebPagetest Forums
parallel css - Printable Version

+- WebPagetest Forums (https://www.webpagetest.org/forums)
+-- Forum: Web Performance (/forumdisplay.php?fid=3)
+--- Forum: Discuss Test Results (/forumdisplay.php?fid=4)
+--- Thread: parallel css (/showthread.php?tid=10487)



parallel css - paulus - 01-31-2012 03:06 AM

I've noticed 4 css files next to each other taking around 0.5 - 1 second to load. I was about to amalgamate them into 1 file when I noticed they were running in parallel. If I did amalgamate them then it would actually take longer.

So perhaps its best not to put all css in one file but to split them into many files? Can someone confirm this?


RE: parallel css - mrPerezMarc - 02-01-2012 02:07 AM

It's better to make them 1 file because you will be saving 3 http request, and therefore letting other element load.

I recommend you use an app like Minify app that will combine, minify, cache, and gzip your css file.
code.google.com/p/minify

If you like something more robust that will call the css file when needed, i would recommend YUI loader. You can define your modules, and on which page to use those module. It will call the CSS file in one http request.
http://youtu.be/wuEmo9URF2g