Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does SPDY protocol eliminate the need for CSS sprites, combined JS and CSS files?

I have been always combining CSS and JS files. The same has pretty much applied to images, too. I am wondering here that does Google's SPDY, with its multiplexing connections, remove the need for all of this? Compilation/minifying is not what I am asking here, just about the overhead of additional HTTP requests we have in the typical HTTP protocol.

like image 466
Tower Avatar asked Feb 18 '11 18:02

Tower


2 Answers

SPDY allows your browser to fetch all the images in parallel, which helps. If the browser has sufficient bandwidth, this can be enough to make SPDY unsprited as fast a HTTP with sprites.

But, sprites are still better for absolute performance.

Usually, when you combine 5-6 images the resulting size of the image is significantly smaller than the sum of the sizes of the individual images. Your results will vary, depending on what types of images you're using and how many there are. The css tricks guys have an example: http://css-tricks.com/css-sprites/

like image 120
Mike Belshe Avatar answered Oct 04 '22 04:10

Mike Belshe


Even with the multiplexing of SPDY, cutting down on requests will likely result in performance boosts.

like image 38
abraham Avatar answered Oct 04 '22 05:10

abraham