public marks

LINK

CSS - Best Practice ? - Images in CSS or HTML as data/base64 - Stack Overflow

by decembre & 1 other
t's a good practice usually only for very small CSS images that are going to be used together (like CSS sprites) when IE compatibility doesn't matter, and saving the request is more important than cacheability. It has a number of notable downsides: Doesn't work at all in IE6 and 7. Works for resources only up to 32k in size in IE8. It saves a request, but bloats the HTML page instead! And makes images uncacheable. They get loaded every time the containing page or style sheet get loaded. Base64 encoding bloats image sizes by 33%. If served in a gzipped resource, data: images are almost certainly going to be a terrible strain on the server's resources! Images are traditionally very CPU intensive to compress, with very little reduction in size.

Comments

No comment on this link yet.


PUBLIC TAGS
on this link

base64   css   date:image   dev   encodage   image   image Base64   images   practice   sprite  

BY

decembre
the 02/08/2013 at 10:26

dzc
the 05/07/2013 at 01:30