Hacker News new | ask | show | jobs
by SilasX 1821 days ago
In fairness, I see that on a lot of sites now and I almost want to say that's something browsers should be fixing. "Back" should take me to the exact page state, almost as if I had been following every page in a new tab (which is what they recommend now if you want to preserve where you were). It should be instant. But on most sites it hasn't been for a while.
1 comments

> which is what they recommend now if you want to preserve where you were

And which becomes more difficult when sites break middle-clicking and other shortcuts to open links in new tabs, or when the "links" ain't actually links but just something on which they tack on an onClick() and run a bunch of JS to reinvent the concept of a link.

Yes! I made a post about that just recently on Facebook, about how annoying that is. And I was told the workaround was to use the browser’s “duplicate tab” feature before opening one. But that doesn’t help either: it just loads the current url in a new tab, which loses page state.

What we need is something that locally duplicates the page state into another tab. But then, sites already break that by a) firing off requests that can be dangerous to duplicate (not idempotent) and b) synchronizing state across tabs (argh!) so you can’t have different state in different tabs for the same domain (or just session, idk).

Facebook is notorious about that last bit and won’t let you eg have one tab with your feed best visible and another with a conversation hovering over it all.