[openstreetmap/openstreetmap-website] Lazy image loading for user provided content (Issue #5601)

Holger Jeromin notifications at github.com
Wed Feb 5 12:35:55 UTC 2025


On a [website from me](https://www.gwc-gt.de/Turnierergebnisse.php) I added this HTML property to all user added images (inline images in a blog like page).
Invisible images (down a few pages) are not loaded till the user scrolls down. The browser is smart enough to fetch them early enough, so even if the image size is not known initially the reflow is not visible.

To summarize: I am pretty sure this will have no downside but will be good with many scenarios.

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

Message ID: <openstreetmap/openstreetmap-website/issues/5601/2636637631 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250205/ab658972/attachment.htm>


More information about the rails-dev mailing list