emptygif
Idioma: Español

Todos los lenguajes y frameworks

HTML <img> with a data: URI HTML

Un fragmento en HTML para HTML <img> with a data: URI que responde a las peticiones a /pixel.gif con el GIF vacío, decodificado una sola vez al arrancar.

HTML <img> with a data: URI HTML

Archivo
index.html
<!-- Inline transparent spacer / placeholder: no extra HTTP request -->
<img src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==" width="1" height="1" alt="">

Ejecutamos este fragmento y comparamos los bytes que devolvió.

Sitio oficial: HTML <img> with a data: URI

Más en HTML