News for hackers. Stuff that matters.
Re:Animating URLs with JavaScript and Emojis by bork1 on Wednesday April 17, 2019 @11:52AM (#19683651)
One downside is that it basically renders the back button useless. I ran the examples you provided (which were great fun!) and when I tried to get back to hackernews I realized each step in the animation had been added to my browser history
Re:Animating URLs with JavaScript and Emojis by zuppy on Wednesday April 17, 2019 @11:58AM (#19683703)
you can use replaceState for that and back will work fine
Re:Animating URLs with JavaScript and Emojis by tracker1 on Wednesday April 17, 2019 @12:54PM (#19684264)
I didn't really look at the code, mostly because I just found the idea interesting as I hadn't considered it. Kind of surprised that it's not using the history api to replace the hash.
Re:Animating URLs with JavaScript and Emojis by ludwigvan on Saturday April 20, 2019 @04:42AM (#19705454)
He explains in the article that he couldn't do it with History API since it is throttled by the browsers.
Re:Animating URLs with JavaScript and Emojis by bork1 on Wednesday April 17, 2019 @06:46PM (#19687095)
Oh nice; good to know that there's an easy way to get around that.
Re:Animating URLs with JavaScript and Emojis by codedokode on Wednesday April 17, 2019 @12:58PM (#19684293)
Maybe browsers should go back not to previous URL, but to previous domain.