[openstreetmap/openstreetmap-website] Lazy loading relation members (PR #6326)

mmd notifications at github.com
Sun Aug 17 19:26:58 UTC 2025


mmd-osm left a comment (openstreetmap/openstreetmap-website#6326)

Originally, I used the `loading="lazy"` attribute to fetch relation members on demand only, when a user expands the list. With the current implementation, all relation members are prefetched. Maybe this needs to be tuned for some use cases like the relation history, to limit the number of requests.

```
 <turbo-frame id="member_relation_<%= relation.id %>" loading="lazy"
```

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

Message ID: <openstreetmap/openstreetmap-website/pull/6326/c3194602235 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250817/70b78aca/attachment.htm>


More information about the rails-dev mailing list