Created
July 17, 2014 07:57
-
-
Save bazzooka/e7766a4187dc5b7a4d78 to your computer and use it in GitHub Desktop.
Make an history.go(+1), history.go(-1) to test performance
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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