0

It necessarily doesn't have to be after the onload event, but basically at any point during or after the page load can I stop v8 from executing any further javascript using some runtime chrome flag or javascript internal flag?

Ayush Goel
  • 435
  • 6
  • 16
  • You might want to look at [this question](https://stackoverflow.com/questions/9298839/is-it-possible-to-stop-javascript-execution) and [this question](https://stackoverflow.com/questions/550574/how-to-terminate-the-script-in-javascript), which have already covered this topic at length. – aaplmath Aug 28 '18 at 00:29
  • Possible duplicate of [How to terminate the script in Javascript](https://stackoverflow.com/questions/550574/how-to-terminate-the-script-in-javascript) – phuzi Aug 28 '18 at 09:19

1 Answers1

0

For debugging: open DevTools, switch to the "Sources" tab, click the "Pause" button on the right.

If you want to interrupt earlier than you can click manually, you can also set a breakpoint on the line of interest and reload the page.

If debugging is not your purpose, please be more specific.

jmrk
  • 34,271
  • 7
  • 59
  • 74