Skip to content

Instantly share code, notes, and snippets.

@dragonhuntr
Created April 6, 2022 08:23
Show Gist options
  • Save dragonhuntr/d10231c145df3fa2fbdaabc36c5f76b9 to your computer and use it in GitHub Desktop.
Save dragonhuntr/d10231c145df3fa2fbdaabc36c5f76b9 to your computer and use it in GitHub Desktop.
chrome pause before redirect
// Run this in the F12 javascript console in chrome
// if a redirect happens, the page will pause
// this helps because chrome's network tab's
// "preserve log" seems to technically preserve the log
// but you can't actually LOOK at it...
// also the "replay xhr" feature does not work after reload
// even if you "preserve log".
window.addEventListener("beforeunload", function() { debugger; }, false)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment