CSS Sprites Revisited
coding.smashingmagazine.com
coding.smashingmagazine.com
The lack of attention to SVG stacks (http://simurai.com/post/20251013889/svg-stacks) is very curious to me - being a proponent of this method/movement seems analogous to being pro-PNG in the era of GIFs.
That said, I really do wish there was better browser support for them. Having to embed them as objects instead of images, for example, is a tad bit lame :/ And then you're still left with anything before IE9 (I think?) unable to see them. On the mobile-end, the same goes with anything before Android 3... Or weird buggy behaviour when you're applying things like hover effects to parts of the image, etc...
It's definitely promising though
Doing this manually is insane and probably not worth it unless you're fielding requests like Facebook, Google or Amazon and every split second spent loading is lost money.
I wonder if the growth of SPDY undermines the entire foundation of using CSS sprites?
1. Compile LESS/SASS
2. Sprite Generation
3. Minification
easier to do ?
Here's a great idea that I would like to see implemented concerning css sprites and the rails asset pipeline:
In your .erb.css file you could include each background image individually, when you reference it in the css you would flag it as "spritable". Then when assets:precompile is ran some magic piece of code would build a single sprite image from all your background images and fill in the background-position. Automating the whole process.
Like most things I don't have the time/skill to do with, but nice idea nonetheless.