News for hackers. Stuff that matters.
Re:Data URIs make CSS sprites obsolete by jjs on Tuesday July 06, 2010 @10:51PM (#1493166)
> For example, you can't re-use the same image in other CSS files without duplicating the image's download cost as it's the surrounding CSS file that's cached, not the image itself.

On the other hand, you could create css classes like

  .someImage { background: url(...) no-repeat; }
and stick them in a sitewide stylesheet.
Re:Data URIs make CSS sprites obsolete by pmjordan on Wednesday July 07, 2010 @02:49AM (#1493555)
Though then you may as well use a sprite atlas, as you're introducing a new HTTP request anyway.
Re:Data URIs make CSS sprites obsolete by user24 on Wednesday July 07, 2010 @05:13AM (#1493747)
well, yes and no; having them put away into a separate css file would be an extra http request, but it's not fair to say "therefore you might as well use sprites", because the chances are you're going to have a global stylesheet that you can tack the images onto the end of; no extra HTTP requests.