Live data from Hacker News

Minimal CSS-only blurry image placeholders

leanrada.com

61–70 of 78 posts

Re: Minimal CSS-only blurry image placeholders

#64
We need to embrace WebP v2 for this kind of stuff. I took one of their images, resized it to 24x16px, and compressed it with Squoosh at 65% quality. It compresses to just 144 bytes. And it looks way way way better than these CSS gradients.

https://squoosh.app/

Re: Minimal CSS-only blurry image placeholders

#66

We need to embrace WebP v2 for this kind of stuff. I took one of their images, resized it to 24x16px, and compressed it with Squoosh at 65% quality. It compresses to just 144 bytes. And it looks way way way better than these CSS gradients. https://squoosh.app/

Cool app but no maintained library to use it in our own apps and scripts.

Re: Minimal CSS-only blurry image placeholders

#68

Earlier quoted context omitted.

The placeholder is inline in the markup. It can be displayed before the image loads. Which is not inline. I have no idea what 99% thing you're talking about.

Look at literally any "newspaper" website. From the smallest local paper to the NYT.

That's a whole separate thing with a different reason for existing.

Re: Minimal CSS-only blurry image placeholders

#69

We need to embrace WebP v2 for this kind of stuff. I took one of their images, resized it to 24x16px, and compressed it with Squoosh at 65% quality. It compresses to just 144 bytes. And it looks way way way better than these CSS gradients. https://squoosh.app/

Cool app but no maintained library to use it in our own apps and scripts.

https://github.com/GoogleChromeLabs/squoosh

Re: Minimal CSS-only blurry image placeholders

#70
Just in case anyone also misses it like I did, dark reader (at least on firefox) appears to apply itself to the final colors causing them to look quite bad and not match the input image at all. I would have discounted this entirely if it wasn't for all the praise I was seeing in the comments here.
Post reply on HN