-
is css-sprite good technique? I read about its pros at http://spriteme.org/ and have also I seen a lot of questions about css sprites here in stackoverflow.
-
What are its cons?
-
Will it work in all browsers as claimed in their site?
is css-sprite good technique? I read about its pros at http://spriteme.org/ and have also
Share
Yes, it is a good technique.
You can reduce the number of HTTP requests and it is a page optimization technique.
The first rule in
Best Practices for Speeding Websites by Yahoo
is
Minimize HTTP Requests
When you need to change the dimensions of the images inside the sprite then you have to recalculate the offsets for the images. But I don’t think this is a huge burden.
It is supported by almost all modern browsers.
This is also a good article on CSS sprites
CSS Sprites: What They Are, Why They’re Cool, and How To Use Them