<p dir="auto">A step towards lazily instantiating these controllers.</p>
<p dir="auto">A few event handlers (like for query and search) need to be moved to allow the controllers to really be instantiated lazily.</p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/openstreetmap/openstreetmap-website/pull/6291'>https://github.com/openstreetmap/openstreetmap-website/pull/6291</a></p>

<h4>Commit Summary</h4>
<ul>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/6291/commits/d2950f7b16e6751223fe75b2f078881c40bb3d26" class="commit-link">d2950f7</a>  Curry js element controllers</li>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/6291/commits/530e26b943bd05821145e6e04717a7573627eb00" class="commit-link">530e26b</a>  Instantiate js controllers only in router</li>
</ul>

<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/6291/files">3 files</a>)</p>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/6291/files#diff-cdc070ced1c4000efd1e28357fd26b2fd617d7fccfeae0324222231db75dd6ee">app/assets/javascripts/index.js</a>
    (40)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/6291/files#diff-71436f6016f6f28a1b7bed75ba46219ad59d0d88a0cd1321d089fbd74375c97c">app/assets/javascripts/index/element.js</a>
    (6)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/6291/files#diff-3635093596ec53c4cebe7c2263939a5b01c8b9c71462506873f73af8429cabbc">app/assets/javascripts/router.js</a>
    (2)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/6291.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/6291.patch</a></li>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/6291.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/6291.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/6291">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLJ2KAU3NP6UKGBOPKT3MC5RJAVCNFSM6AAAAACDFFKCW6VHI2DSMVQWIX3LMV43ASLTON2WKOZTGI4TGMZUGYYTANQ">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLJR4FVNL7V3HI3SLUD3MC5RJA5CNFSM6AAAAACDFFKCW6WGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHMITDZHI.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/pull/6291</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/6291",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/6291",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>