Mastodon Feed: Post

Mastodon Feed

slightlyoff@toot.cafe ("Alex Russell") wrote:

Just pushed a version of these badass CSS-only image previews to my blog:

https://leanrada.com/notes/css-only-lqip/

Biggest upside is cleaner markup. Also gave me the excuse to defer raster of below-the-fold images entirely with `content-visibility`.

A few tricky things getting it good enough to replace the AVIF-based placeholders I was using before:

- colourspace conversion functions Lean uses aren't accurate; need to copy specific files
- the algorithm for the sample images changed since publication