Upgrade to Pro — share decks privately, control downloads, hide ads and more …

CSS Sprites vs. Data URIs

Sponsored · Ship Features Fearlessly Turn features on and off without deploys. Used by thousands of Ruby developers.
Avatar for Guille Paz Guille Paz
January 10, 2014

CSS Sprites vs. Data URIs

Are Data URIs better than CSS Sprites?
@pazguille & @taly

Avatar for Guille Paz

Guille Paz

January 10, 2014
Tweet

More Decks by Guille Paz

Other Decks in Programming

Transcript

  1. <img src=“data:image/png;base64,IVBOR...”> • data - name of the scheme ◦

    image/png - content type • base64 - type of encoding used to encode
  2. <img src=“data:image/png;base64,IVBOR...”> • data - name of the scheme ◦

    image/png - content type • base64 - type of encoding used to encode • IVBOR… - the encoded data