emoji-url-game
emoji-url-game copied to clipboard
Flooded browser history
Hey, great job - this is pretty neat. I probably spent a bit too long playing it...
If you use history.replaceState(null, "", display.join(""))
instead of location.hash = ...
you can avoid polluting the user's browser history.
Dunno if it has any performance penalties. Worth a shot.
I actually tried to use the History API here, but it's throttled on 70% of browsers..
Thanks for the feedback still !
@arnaudsm did you try to use location.replace()
? I did a quick test and it appears to yield the same result as using location.hash
.
@arnaudsm did you try to use
location.replace()
? I did a quick test and it appears to yield the same result as usinglocation.hash
.
That's a good idea ! However the server needs to be able to respond to new URLs. That might be possible with some .htaccess
magic.