<p dir="auto"><a href="https://getbootstrap.com/docs/5.1/components/spinners/" rel="nofollow">https://getbootstrap.com/docs/5.1/components/spinners/</a></p>
<p dir="auto">One problem with the current "loading" image is that it has a long url that may change:<br>
<a href="https://www.openstreetmap.org/assets/searching-3343ef26a638a661762242d1f68b505ce78f59cf7a60d15a1ca81bd64da1166c.gif" rel="nofollow">https://www.openstreetmap.org/assets/searching-3343ef26a638a661762242d1f68b505ce78f59cf7a60d15a1ca81bd64da1166c.gif</a></p>
<p dir="auto">This is inconvenient if I start caching html like I want to do in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1368321834" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/3682" data-hovercard-type="pull_request" data-hovercard-url="/openstreetmap/openstreetmap-website/pull/3682/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/pull/3682">#3682</a>. I have a <a href="https://github.com/openstreetmap/openstreetmap-website/pull/3682/commits/2b5d1efa04db45f634a753fd29bc3a46ab8efe72">special fix</a> for this which I wouldn't need with Bootstrap spinners because they don't have any links to assets in their html.</p>
<p dir="auto">Later I want to remove spinners from html templates and write them with javascript. It's already happening to various degrees in different places of the code.</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/3779'>https://github.com/openstreetmap/openstreetmap-website/pull/3779</a></p>
<h4>Commit Summary</h4>
<ul>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/3779/commits/28060080e8ebf3a0609dc2b6853deeae2070df78" class="commit-link">2806008</a> Replace spinners in html.erb templates</li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/3779/commits/8bc7793d4233b9836e0d3513583ec76762128dd9" class="commit-link">8bc7793</a> Replace spinners in javascript</li>
</ul>
<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/3779/files">11 files</a>)</p>
<ul>
<li>
<strong>D</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/3779/files#diff-b188c48e146f30e3ff9383afad1d79b2ad9cfa2f8759bb0aa4baa704f85fedf5">app/assets/images/searching.gif</a>
(0)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/3779/files#diff-a9b88a8a3644f944b9bd54361da588c69fa6a210cf7327194c17895a8ad2b0d6">app/assets/javascripts/osm.js.erb</a>
(2)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/3779/files#diff-6bf5e2b503c6238cb80234a21524267bec1b1a820855412a5795c6296f11cb89">app/assets/javascripts/user.js</a>
(2)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/3779/files#diff-e86a39e6d0b163f152db8843fc7d647a3f5d648de4a74f1732bef4474b6e5bc8">app/assets/stylesheets/common.scss</a>
(24)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/3779/files#diff-544760767b64a6fa8650df71571dbe396837e04ab8126e7504300796ab5d936a">app/views/browse/query.html.erb</a>
(12)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/3779/files#diff-220c900ef90194b54a7ec0fed1160263e31f93bcf1ae1da2687a936e4cb15af5">app/views/changesets/history.html.erb</a>
(6)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/3779/files#diff-db453eec0cc09b6371bff627c927278e1d99e90a16ff58cd7deafb4aeb457f49">app/views/changesets/index.html.erb</a>
(6)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/3779/files#diff-02004238bbd0ab3644584cca90e74aa30b7b2329ee6492b16f79b88aab674efa">app/views/geocoder/results.html.erb</a>
(8)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/3779/files#diff-0fda7af799e96a856b82f014f6734dda379619f2aa888f3c2ece221854ad5d4c">app/views/geocoder/search.html.erb</a>
(6)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/3779/files#diff-60b815932a6942ef4da576f75ee4e9b670e2aeb07950b7f8494bdbedb319c8c2">app/views/layouts/_search.html.erb</a>
(8)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/3779/files#diff-eaeaf6b733bc454c8c41be224e85cdca90bc6e0e5bc1f02f9f86315cfc6fafab">app/views/layouts/map.html.erb</a>
(6)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/3779.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/3779.patch</a></li>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/3779.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/3779.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/3779">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLKLQOAVG5WADXQRIXTWGA6TDANCNFSM6AAAAAARTQGJDA">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLL4FCYSLTNNGA5QTS3WGA6TDA5CNFSM6AAAAAARTQGJDCWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHFKRD6JY.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/3779</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/3779",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/3779",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>