Skip to content

Instantly share code, notes, and snippets.

@charliefmoran
Created June 17, 2014 17:43
Show Gist options
  • Select an option

  • Save charliefmoran/6b1ca92495ffbb24f14a to your computer and use it in GitHub Desktop.

Select an option

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
Copy Markdown
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