Re:Browsers are pretty good at loading pages
by jimmaswell on Sunday July 21, 2019 @04:25PM
(#20493445)
Just 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.
Re:Browsers are pretty good at loading pages
by mintplant on Sunday July 21, 2019 @04:51PM
(#20493576)
Scroll 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.
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.