Hacker News new | ask | show | jobs
by ocdtrekkie 3745 days ago
The worst part was trying to Back. Just scrolling actually adds a bunch of URLs to your back queue, so when you want to back out of the URL, you end up hitting back like ten times. :/

I suppose New Tab would be my best friend here so I can just X it, but weird abuse of basic browser functionality should be shamed.

1 comments

>The worst part was trying to Back. Just scrolling actually adds a bunch of URLs to your back queue

How does that happen?

One way is by using JS to change the address bar location using window.location or history.pushState(), instead of using history.relpaceState() which doesn't create an extra history entry each time.
I would vote for a president that ran a campaign _only_ based on quirky punishments for those who use history.pushState()

They should have to open a door repeatedly, only to have someone push them back when they try to walk through for a few weeks, for example!

Great idea. I would vote for that too. Like Sisyphus ...

Edit: spelling.

Got it, thanks. I think I've been experiencing similar stuff on some sites for the last few days, but my attention was more on the page topic, also may have thought that it was an issue with my mouse (that I had to click a few times to go to previous page). So it's good to know.