[openstreetmap/openstreetmap-website] Don't do partial renders for turbo page visits (PR #6187)
Tom Hughes
notifications at github.com
Sat Jul 12 23:07:12 UTC 2025
tomhughes left a comment (openstreetmap/openstreetmap-website#6187)
No you're right that you don't have to send the whole page - you can do `render "_page"` to render the template but not as a partial but you still get the whole of the layout so you don't really save much.
Yes I guess your solution from #5175 works as well though it seems quite hacky and I don't know if it's really guaranteed to work given what you send isn't really valid HTML but then neither is just sending the partial.
I think what we're trying to do is really push things beyond what's intended though? Most examples seem to assume you're just sending the full page as normal and leaving the client to figure out what bits are needed...
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6187#issuecomment-3066205253
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/6187/c3066205253 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250712/5b7c16a0/attachment-0001.htm>
More information about the rails-dev
mailing list