<p dir="auto">Full discussion here: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2420889941" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/5009" data-hovercard-type="pull_request" data-hovercard-url="/openstreetmap/openstreetmap-website/pull/5009/hovercard?comment_id=2722980833&comment_type=issue_comment" href="https://github.com/openstreetmap/openstreetmap-website/pull/5009#issuecomment-2722980833">#5009 (comment)</a> But I'll duplicate the comment here.</p>
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2420889941" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/5009" data-hovercard-type="pull_request" data-hovercard-url="/openstreetmap/openstreetmap-website/pull/5009/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/pull/5009">#5009</a> brought two problems:</p>
<ol dir="auto">
<li>When moving the map, a white flash occurs and all objects on the map are redrawn:</li>
</ol>
<p dir="auto"><a href="https://github.com/user-attachments/assets/3c87c769-174c-4513-a5be-115eb9517bb8">https://github.com/user-attachments/assets/3c87c769-174c-4513-a5be-115eb9517bb8</a></p>
<ol start="2" dir="auto">
<li>Rendering slowed down. What used to occupy ~400ms now occupies ~1.3s. Hiding a data layer was previously performed on ~100ms, now ~1.5s (!)</li>
</ol>
<p dir="auto">Both problems arise due to the fact that before that the redrawing of the map was performed only once, after the completion of the removal/adding of objects to the SVG-element of the map.</p>
<p dir="auto">--</p>
<p dir="auto">This PR only removes asynchronous rendering. The loader that shows downloading data near the checkbox remains.</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/5877'>https://github.com/openstreetmap/openstreetmap-website/pull/5877</a></p>
<h4>Commit Summary</h4>
<ul>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5877/commits/8308ac960bbeb45313494f9bb16a0d0ca8b1cea7" class="commit-link">8308ac9</a> Disabling asynchronous data layer rendering</li>
</ul>
<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5877/files">1 file</a>)</p>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5877/files#diff-f060eef487077b042f45b3a12e7a2cbd54a446f8c744cdb98405a1295430e8b9">app/assets/javascripts/leaflet.map.js</a>
(2)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5877.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/5877.patch</a></li>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5877.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/5877.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/5877">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLO54ASNOHM6LBMCMG32XO7NZAVCNFSM6AAAAAB2JHXNACVHI2DSMVQWIX3LMV43ASLTON2WKOZSHE3DMMBRHA2DINA">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLOQNHUFESE4WTX2HXT2XO7NZA5CNFSM6AAAAAB2JHXNACWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHLBSOZRQ.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/5877</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/5877",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/5877",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>