This means old-page content is being shown between steps 2-5, but with the new URL. This presents issues for relative URLs (including links, images, fetch()), which won't behave as expected.
It feels like URL changing should be deferred until the promise passed to transitionWhile resolves, perhaps with an optional commitURLChange() method to perform the swap sooner.
With MPA:
With
transitionWhile
:transitionWhile
called - URL changes hereThis means old-page content is being shown between steps 2-5, but with the new URL. This presents issues for relative URLs (including links, images,
fetch()
), which won't behave as expected.It feels like URL changing should be deferred until the promise passed to
transitionWhile
resolves, perhaps with an optionalcommitURLChange()
method to perform the swap sooner.