Re:Data URIs make CSS sprites obsolete
by jeff18 on Tuesday July 06, 2010 @01:37PM
(#1491672)
I believe stylesheets must be downloaded first before any further rendering can be done. Therefore you block rendering until all images have finished downloading, while a traditional external image sprite can be downloaded asynchronously.
[ Parent
| on HN ]
This Yahoo post thinks that stylesheets don't block the browser, typically: http://developer.yahoo.net/blog/archives/2007/07/high_perfor...
I imagine you could put your base64 encoded images in a separate CSS file to solve this, but then you are back up to one extra HTTP request like CSS sprites.
Re:Data URIs make CSS sprites obsolete
by andrewingram on Tuesday July 06, 2010 @02:11PM
(#1491790)
I was going to make this point on the OP but my comment wasn't posted (yet?)
There are ways around it (define all your background images at the end of the CSS file for example), but I think it's a bit early to be declaring data-urls the holy grail of page performance.