[openstreetmap/openstreetmap-website] Add profile pictures to object (nwr), history and changeset views (Issue #4403)

Holger Jeromin notifications at github.com
Fri Jun 28 12:58:32 UTC 2024


> Another reason not to have avatars on elements is long history pages. Some elements have 100+ versions. Their history pages are already slow to load. If you add images, that will make things even slower.

We could use [loading="lazy"](https://developer.mozilla.org/en-US/docs/Web/Performance/Lazy_loading#images_and_iframes) like `<img loading="lazy" src="image.jpg" alt="..." />`. That way the browser will not fetch the URL on load.

https://web.dev/articles/browser-level-image-lazy-loading

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/4403#issuecomment-2196847254
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/issues/4403/2196847254 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240628/61ece58f/attachment.htm>


More information about the rails-dev mailing list