3 ms·
If you change the window.history.pushState() call to window.history.replaceState(), it doesn't add bazillions of entries to your history, which makes it slightl
by kiwidrew 16y ago
If you change the window.history.pushState() call to window.history.replaceState(), it doesn't add bazillions of entries to your history, which makes it slightly more practical.
javascript:var dashes = ""; var num = 20; while(--num) dashes += "-"; setInterval(function() { window.history.replaceState("", "", dashes.slice(0, num % 20) + "foo" + dashes.slice(num % 20)); num++;}, 500)
- ben_alman 16y agoOk, here's a first pass... http://jsfiddle.net/cowboy/FB9Nd/show/ http://jsfiddle.net/cowboy/FB9Nd/show/