Let's say javascript is in the middle of executing a method, and I click on a button with an attached event handler. Will the execution of the current method be paused, and the click event handler will immediately start executing or execute the js method and only after that will continue to execute the click event handler?
source share