WebPagetest Forums

Full Version: CSS and JS Bundles are useful, yeah ?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi, WPO community I found out a very nasty thing.


CSS and JS bundles makes nothing for performance, I will say more, bundling CSS files into a one file - makes worse render time =((((

one with 73 assets -no bundles
one with 22 assets -bundles


you will see absolutely no difference ((((((((((((( I am very disappointed

http://www.webpagetest.org/video/view.ph...56e&data=1
In your case, the bundled got the main image up to the screen a lot faster: http://www.webpagetest.org/video/compare...end=visual (1/2 a second or so).

That said, there's a lot of blocking behavior going on that shouldn't be (like the js isn't being downloaded while the css is). Are you loading the js directly through script tags or are you using inline js to generate the script src urls? It's hard to say without seing the page source but it looks like the resources are hidden from the preload scanner (or it could be an IE 8 thing).
Also, if you have an IE conditional comment in the code then that may be causing the blocking behavior.
Thanks for answering

We have slightly changed the order of guys in waterfall

Here is what we have on demo server http://www.webpagetest.org/video/compare...db-r:1-c:0

Tonight we deploy bunch of performance improvements
what we did:

-sprites
-inline background images
-bundles CSS and JS
-lazy load images
-inline js and css
-compress image size
-dns prefetching
-partly deferring of Js (libs are in header, out js deffred on Onload event)
- deffer on 3dparties
- memcache on backend
Results of optimization on live - Though we have not added optimized images in production yet (
http://www.webpagetest.org/video/view.ph...43b&data=1
Nice. I'm willing to bet the the blocking behavior you are seeing with the css is because of the IE conditional comments. If you put an empty conditional comment up before any of your external links in the head it should eliminate it and get the images loading sooner. It's a bizarre hack but very effective for IE.

Here's an oldie but goodie article on it: http://www.phpied.com/conditional-commen...downloads/
Reference URL's