CSS data: URI CSS
A CSS snippet for CSS data: URI that answers requests for /pixel.gif with the empty GIF, decoded once at startup.
CSS data: URI CSS
:root {
--empty-gif: url("data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==");
}
/* e.g. a transparent click target or a background placeholder */
.spacer {
background-image: var(--empty-gif);
}
We ran this snippet and compared the bytes it returned.