Detect if browser supports base64 dataURI using JavaScript

A long time ago Flickr have introduced base64 dataURI images in its pages. It brings a lot of benefits for users and web servers but at the time the most of the browsers was not supporting this schema.

For the ones that does not konw what base64 data URI is, just mind to something that is written using 6 bits (a nibble and half) instead of 8 bits and using only the ASCII printable characters to encode the contents.

An example of what I’m meaning is the text “Hello World!” that in base64 encoding would be “SGVsbG8gV29ybGQh“.

(altro…)

%d blogger hanno fatto clic su Mi Piace per questo: