Created
June 17, 2014 17:43
-
-
Save charliefmoran/6b1ca92495ffbb24f14a to your computer and use it in GitHub Desktop.
Track when a page reloads in Chrome console
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
window.addEventListener("beforeunload", function() { var currentdate = new Date(); console.log("refreshing at " + currentdate);}, false); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Remember to check "preserve log upon navigation" in the console settings so this message gets retained through the page load.