📚 Encyclopedia

Web Development · updated 2026-10-13

Inline blur-up placeholders (LQIP): JPEG beats WebP across a page

imageslqipperformancegzipnginxjpegwebp

A low-quality image placeholder (LQIP) is a tiny (~20 px wide) image inlined as a data URI and stretched with a blur while the real image loads. When many are inlined in one HTML page, JPEG is smaller on the wire than WebP even though each JPEG is about four times bigger.

The measurement

Measured on videos.jhampton.io, 95 cards with real posters (2026-08-14): - Per file: ~1,050 bytes as JPEG, ~220 bytes as WebP. - Gzipped across the whole page: 19 KB for JPEGs, 22 KB for WebPs.

Every JPEG repeats the same quantization and Huffman tables, so the files compress against each other. WebP output is already entropy-coded and incompressible. Measure the page, not the file, whenever many small images are inlined. With a single placeholder, or with no response compression, WebP wins outright.

Recipe

Server note: gzip is per site on the Alma box

New vhosts on the Alma Linux server (45.79.9.71) do not gzip by default. nginx gzip on is set per site in /etc/nginx/conf.d/<site>.conf; some sites have it and some do not (the videos site did not at first, and the main justinahampton.com vhost still ships its JS uncompressed). text/html is always compressed once gzip on is set and must not be listed in gzip_types (nginx warns about the duplicate).

See also

Linked from

Sources: justinahampton memory (lqip-jpeg-beats-webp), videos.jhampton.io 2026-08-14