Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Crash no Safari fazendo um stackoverflow no Pushstate
var total = '';
for (var i=0; i<100000; i++) {
total += i.toString();
history.pushState(0, 0, total);
}
Owner

suissa commented Jan 26, 2016

Os navegadores provavelmente não implementaram isso corretamente:

In addition, a user agent could ignore calls to pushState() that are invoked on a timer, or from event listeners that are not triggered in response to a clear user action, or that are invoked in rapid succession.

fonte: https://html.spec.whatwg.org/multipage/browsers.html#dom-history-pushstate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment