PlaidWeb / webmention.js

Client-side library for rendering webmentions from webmention.io
MIT License
112 stars 16 forks source link

Add demand loading of avatar images #17

Closed fluffy-critter closed 3 years ago

fluffy-critter commented 3 years ago

Context: https://www.zachleat.com/web/facepile/

Relatedly, should add some mechanism for configuring a caching resize proxy (although that's hard to do securely in a client-side JS library in a way that avoids abuse, and the server-side component should probably lean on the webmention.io avatar cache)

coliff commented 3 years ago

As a quick, helpful partial solution it'd be great to add native lazy-loading of images with loading="lazy" on the img tag.

fluffy-critter commented 3 years ago

Ah, yeah, that'd probably be helpful too. I keep forgetting that's a thing now.

coliff commented 3 years ago

Yeah, it works great and is supported on all browsers now (except Safari, which I expect will follow soon since it's technically implemented but behind the experimental webkit features menu).

fluffy-critter commented 3 years ago

Yeah and your comment inspired me to finally add that on Publ as well, since it's easy enough :)

fluffy-critter commented 3 years ago

Fixed in #20