<p></p>
<blockquote>
<p dir="auto">Do you want a bigger rewrite?</p>
</blockquote>
<p dir="auto">So long as it's implemented as a series of smaller PRs <g-emoji class="g-emoji" alias="stuck_out_tongue_winking_eye" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f61c.png">😜</g-emoji></p>
<p dir="auto">This is probably not the best place to expand the discussion, but yes I want us to move away from our building-html-in-javascript approach. It has grown organically and for different reasons, but there's too much <code class="notranslate">$("<div>").append</code> style manual assembling of html. These chunks of html could be better built server-side, which is the basis of much of the "hotwire" approach. But it would be a large project to achieve this, and there's a few pre-requisites that need to be completed first e.g. <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="487898061" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/2364" data-hovercard-type="pull_request" data-hovercard-url="/openstreetmap/openstreetmap-website/pull/2364/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/pull/2364">#2364</a>.</p>
<blockquote>
<p dir="auto">Currently the pagination works with these requests<br>
<a href="https://www.openstreetmap.org/user/(username)/history?list=1&max_id=(id)" rel="nofollow">https://www.openstreetmap.org/user/(username)/history?list=1&max_id=(id)</a><br>
returning a limited amount of changesets starting from the specified id. It's possible to add full pages with urls like this, for example<br>
<a href="https://www.openstreetmap.org/user/(username)/history?max_id=(id)" rel="nofollow">https://www.openstreetmap.org/user/(username)/history?max_id=(id)</a><br>
then have "Load more" to link to them. Is it going to be "pagination working properly without javascript"?</p>
</blockquote>
<p dir="auto">From what I understand, then yes. Basically if pagination works with javascript turned off (i.e. with working links and full page reloads) and then with javascript enabled, it can do the enhanced behaviour e.g. incremental loading (like now) and with the url changing to a working permalink (instead of trying to save state in cookies or local storage etc).</p>
<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/issues/647#issuecomment-1308694592">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLOPELZUEMWOV7MYMQLWHOL4XANCNFSM4AKLXOMQ">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLLSYXXHUD4BMCTJOBDWHOL4XA5CNFSM4AKLXOM2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOJYARQQA.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/issues/647/1308694592</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/issues/647#issuecomment-1308694592",
"url": "https://github.com/openstreetmap/openstreetmap-website/issues/647#issuecomment-1308694592",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>