4 min read
When to Base64-Encode an Image (and When Not To)
Data URIs let you embed an image directly in HTML or CSS as Base64 text. It works, it's overused, and it makes some pages slower rather than faster.
3 articles tagged “performance”.
Data URIs let you embed an image directly in HTML or CSS as Base64 text. It works, it's overused, and it makes some pages slower rather than faster.
Random v4 UUIDs scatter writes across your index and cause page splits. Version 7 sorts by time and fixes it, without giving up global uniqueness.
Modern browsers can decode, resize and re-encode images locally using Canvas. Here is how it works, what quality setting to pick, and where the approach breaks down.