Instead of linking images from external resources, it is possible to encrypt them in the HTML and CSS like this:
<img alt="" src="data:image/png;base64,R0lGODlhEAAQAM..." />
or
body {
background: url(data:image/png;base64,R0lGODlhEAAQAM...);
}
What are the advantages and disadvantages of that compared with the usual linking? What is more preferable for high-performance websites? How supported is this feature across browsers?
DataURI instead of external resources in file
Pros
Cons
DataURI is essentially a Base64 string. Base64 gury say:
Pros
Cons