Skip to content

Instantly share code, notes, and snippets.

@bazzooka
Created July 17, 2014 07:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bazzooka/e7766a4187dc5b7a4d78 to your computer and use it in GitHub Desktop.
Save bazzooka/e7766a4187dc5b7a4d78 to your computer and use it in GitHub Desktop.
Make an history.go(+1), history.go(-1) to test performance
setTimeout(function(){
console.log("Begin");
var isOne = true;
var intervalTimer = setInterval(function () {
if (isOne) {
isOne = false;
history.go(+1);
} else {
isOne = true;
history.go(-1)
}
}, 500); // Change page every 500ms
setTimeout(function () {
clearInterval(intervalTimer);
console.log("End");
}, 40000); // Make it for 40s
}, 2000); // Let you 2s to launch you chrome dev tool and record sequence
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment