News for hackers. Stuff that matters.
Re:Sprite Cow – Generate CSS for sprite sheets by jackmoore on Monday December 02, 2013 @11:20AM (#6834559)
I can't wait for the sprite era to end.
Re:Sprite Cow – Generate CSS for sprite sheets by sampk on Monday December 02, 2013 @01:39PM (#6835502)
Me too. I've been waiting for Media Fragments URIs to be implemented since forever: http://css-tricks.com/media-fragments-uri-spatial-dimension/
Re:Sprite Cow – Generate CSS for sprite sheets by jenius on Monday December 02, 2013 @11:31AM (#6834625)
I haven't used a sprite in quite a while. Gzipped svgs do the job quite well, are very light, and you don't ever have to worry about resolution. The only downside is if/when you have to support IE8.
Re:Sprite Cow – Generate CSS for sprite sheets by dictum on Monday December 02, 2013 @11:47AM (#6834726)
Correct me if I'm wrong, but until all widely used modern browsers support SPDY or HTTP2, the number of requests is still a problem only solvable with sprites.
Re:Sprite Cow – Generate CSS for sprite sheets by undoware on Monday December 02, 2013 @10:24PM (#6838276)
You stand corrected. You can embed the assets as base64 'data-uri' hrefs. Which IMO is the correct approach; sprites smack of the sort of suboptimal overoptimization that complicates workflow and exerts an invisible, mammoth drag on development, by slightly elongating each code-test-debug cycle. You have to get your raster assets -- which, let's face it, are probably being stored in .xcf or .psd format -- into a single .psd (or .xcf; hereinafter implied) so that a proper .png payload can be generated. Then you have to have either logic or CSS mess (or yes, SASS, or ...) to unpack that payload. The whole process is just so obnoxious. Why not just generate base64 strings and apply them to the site with jade (or grunt + jade, or grunt + ...0. SO MUCH EASIER. No scripting Photoshop (ew, COM+). No Guile, so you don't have to be up on your lambdas. Just use the tools you already use.

And, oh, IE8 does data URIs. Why aren't we all doing this again? Oh yeah, I forgot to write the blog post. :/

Re:Sprite Cow – Generate CSS for sprite sheets by syncsynchalt on Monday December 02, 2013 @07:07PM (#6837573)
Does SPDY reduce/remove the need for sprites?