[openstreetmap/openstreetmap-website] Load js controller modules only when needed (PR #7147)

Marwin Hochfelsner notifications at github.com
Sun Jun 21 20:33:40 UTC 2026


hlfan left a comment (openstreetmap/openstreetmap-website#7147)

Exactly.
`Endpoint`, `RouteOutput`, `ChangesetsLayer`, and all the `ChangesetBbox*Layer`s are globals only in their respective modules.
I did it this way and not by making them modules too because that only works with module bundlers, which Sprockets isn't.

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

Message ID: <openstreetmap/openstreetmap-website/pull/7147/c4763210516 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260621/a147df02/attachment-0001.htm>


More information about the rails-dev mailing list