Live data from Hacker News

Animating URLs with JavaScript and Emojis

matthewrayfield.com

1–10 of 173 posts

Re: Animating URLs with JavaScript and Emojis

#4

Cool! It did however completely break my back button....

Because it manipulated the hash component directly. By using the "replaceState" method of the history API [1] you could avoid polluting the browser's history.

[1] https://developer.mozilla.org/en-US/docs/Web/API/History_API

Re: Animating URLs with JavaScript and Emojis

#6
post #4

Cool! It did however completely break my back button....

Because it manipulated the hash component directly. By using the "replaceState" method of the history API [1] you could avoid polluting the browser's history. [1] https://developer.mozilla.org/en-US/docs/Web/API/History_API

Didn't the article say the history API was throttled on Chrome and Safari?
Post reply on HN