4 ms·
> And if they do, why do they always only do a half-assed job at it? Oh, that's the easy one. It's half-assed because it's hard as hell to do a good job replac
by marcosdumay 7y ago
> And if they do, why do they always only do a half-assed job at it?
Oh, that's the easy one. It's half-assed because it's hard as hell to do a good job replacing the browser navigation. It shouldn't be surprising, since browsers are huge pieces of software made basically for displaying content and navigation, it's not reasonable to expect every web page to competently replace half of that job.
- jimmaswell 7y agoJust use the history state pushing API and it's not that hard. Put state information in the url and load the right content on refresh.
- mintplant 7y agoScroll restoration is very difficult to reproduce perfectly. Particularly when content changes between navigating from one page to another and then navigating back, or when the user closes and re-opens the tab/browser.