3 ms·
That still creates a history state, so if you make 10 map moves, you have to click "back" 11 times to get back to the previous page. replaceState() works a lot
by evan_ 11y ago
That still creates a history state, so if you make 10 map moves, you have to click "back" 11 times to get back to the previous page.
replaceState() works a lot better:
https://developer.mozilla.org/en-US/docs/Web/Guide/API/DOM/Manipulating_the_browser_history#The_replaceState()_method https://developer.mozilla.org/en-US/docs/Web/Guide/API/DOM/M...