[openstreetmap/openstreetmap-website] Instantiate js controllers only in router (PR #6291)

Marwin Hochfelsner notifications at github.com
Tue Aug 5 14:28:36 UTC 2025


A step towards lazily instantiating these controllers.

A few event handlers (like for query and search) need to be moved to allow the controllers to really be instantiated lazily.
You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/openstreetmap-website/pull/6291

-- Commit Summary --

  * Curry js element controllers
  * Instantiate js controllers only in router

-- File Changes --

    M app/assets/javascripts/index.js (40)
    M app/assets/javascripts/index/element.js (6)
    M app/assets/javascripts/router.js (2)

-- Patch Links --

https://github.com/openstreetmap/openstreetmap-website/pull/6291.patch
https://github.com/openstreetmap/openstreetmap-website/pull/6291.diff

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

Message ID: <openstreetmap/openstreetmap-website/pull/6291 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250805/033ba0e2/attachment.htm>


More information about the rails-dev mailing list