3 ms·
Very nice! However breaking the back button is very bad UX (remember ad-stuffed pages that would not let go back to google). I think it should be possible to ch
by halotrope 7y ago
Very nice! However breaking the back button is very bad UX (remember ad-stuffed pages that would not let go back to google). I think it should be possible to change the hash without adding a new page by not using history API.
- jwilk 7y agoThey are using location.hash. history.replaceState() wouldn't break the back button, but apparently history API is throttled in some browsers; see the "One Last Thing" section on https://matthewrayfield.com/articles/animating-urls-with-javascript-and-emojis/ https://matthewrayfield.com/articles/animating-urls-with-jav... .