Pinterest, Google Images and lots of image-heavy sites lazy-load their content. They also calculate the dominant color of each image to use as a placeholder. This post presents a few methods to do the same and helps you understand the GIF file format to make the most of data URIs.
The basic concept is to use a tiny
src attribute and replace it with the correct image after the page has fully loaded. The
blank.gif can also be set as a Base64-encoded Data URI to save a request.
... read the whole story at manu.ninja.
<img src="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=" data-src="https://s-media-cache-ak0.pinimg.com/474x/50/1b/74/501b74902935b063816ea8e14f460ca0.jpg" alt="Ghost In The Shell">