Skip to content

Instantly share code, notes, and snippets.

@charliefmoran
Created June 17, 2014 17:43
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 charliefmoran/6b1ca92495ffbb24f14a to your computer and use it in GitHub Desktop.
Save charliefmoran/6b1ca92495ffbb24f14a to your computer and use it in GitHub Desktop.
Track when a page reloads in Chrome console
window.addEventListener("beforeunload", function() { var currentdate = new Date(); console.log("refreshing at " + currentdate);}, false);
@charliefmoran
Copy link
Author

Remember to check "preserve log upon navigation" in the console settings so this message gets retained through the page load.

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