I was asked about base64 vs a sprite image in CSS

Jake Archibald:

With base64 the image data is in the css file, meaning it gets downloaded even if it isn’t needed. Eg, if you’re using media queries to optimise image usage for mobile, base64 doesn’t help.

Jake Archibald makes some good points against Data URIs.

Veröffentlicht am Mittwoch, 02. Mai 2012


  1. However, for small images (i.e. a single image that contains about twenty icons at 16×16 size), base64 encoded data might speed up the loading process due to reduced amount of http requests. might be interesting to see some measurements taken here.

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht.