<p>This does mean that it gets executed on any page on the site.<br>
The current impact is three global functions and a ready callback<br>
that's a no-op if there's no #sidebar. Harmless, but we might<br>
want to clean that up -- here's what I use for bundled page-specific<br>
JS: <a href="https://gist.github.com/2596712">https://gist.github.com/2596712</a></p>
<hr>
<h4>You can merge this Pull Request by running:</h4>
<pre> git pull https://github.com/jfirebaugh/openstreetmap-website resize_js</pre>
<p>Or view, comment on, or merge it at:</p>
<p> <a href='https://github.com/openstreetmap/openstreetmap-website/pull/87'>https://github.com/openstreetmap/openstreetmap-website/pull/87</a></p>
<h4>Commit Summary</h4>
<ul>
<li>Eliminate interpolation in resize JS</li>
<li>Move resize JS to application bundle</li>
</ul>
<h4>File Changes</h4>
<ul>
<li><strong>M</strong> app/assets/javascripts/application.js (1)</li>
<li><strong>A</strong> app/assets/javascripts/resize.js (56)</li>
<li><strong>D</strong> app/views/site/_resize.html.erb (56)</li>
<li><strong>M</strong> app/views/site/edit.html.erb (1)</li>
<li><strong>M</strong> app/views/site/index.html.erb (6)</li>
</ul>
<h4>Patch Links</h4>
<ul>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/87.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/87.patch</a></li>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/87.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/87.diff</a></li>
</ul>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">
—<br>
Reply to this email directly or <a href='https://github.com/openstreetmap/openstreetmap-website/pull/87'>view it on GitHub</a>.
</p>
<img src='https://github.com/notifications/beacon/J6T91GIPIyhU-8ti4GCGP98_UZTRAhtyIjAjorWDZ_kbhvvciJSUOJeFJzE1jt1o.gif' height='1' width='1'>