also called low-quality image placeholder · progressive loading
Two jobs at once: something to look at immediately, and a reserved box so nothing shifts when the real file lands. Layout shift is a ranked Core Web Vital, so the aspect-ratio is not decoration. A stand-in small enough to write into the page costs no request of its own and is there with the words. Sixteen pixels across is the least that still holds a composition: at ten, the round window at Massaki and the lantern at Asakusa are gone. The browser stretches it over the print’s slot and blurs it; padded with two pixels of its own edge, the blur finds the picture’s colour at the border and not a fade to nothing. Then the print comes into focus over it rather than being pasted on top. Each colour in these prints came from its own woodblock, ten or more to a print, with bokashi grading the skies: that is what survives, which is why a wall of stand-ins already reads as the seasons.
How it is built
<div class="slot" style="--lqip: url(data:image/webp;base64,UklGRq4AAABXRUJQ…)"> <!-- 16 pixels, ~170 bytes -->
<img src="…/960px-print.jpg" loading="lazy" width="870" height="1324" alt="…">
</div>
.slot::before { background: var(--lqip) 0 0 / 100% 100%; filter: blur(3.5cqi) } /* the stand-in, softened */
.held .slot img:not(.in) { opacity: 0; filter: blur(2cqi) } /* until the file has arrived and decoded */In full, on GitHub index.html showcase.css showcase.js
Prints — Utagawa Hiroshige, One Hundred Famous Views of Edo, 1856–58, public domain, via Wikimedia Commons, by number in the series: the Metropolitan Museum of Art (CC0), 16, 36, 56, 58, 75, 94, 98, 99, 101, 107, 118; the Library of Congress, 1, 64, 89; the Cantor Arts Center, Stanford University, 30; the Museum of Fine Arts, Boston, 48. Each is shown cropped to its printed image, without the margins of its sheet. Facts — One Hundred Famous Views of Edo; Ukiyo-e.















