The javascript engine is executing a function which in turn calls another function (sequentially) and this goes on for say 5s. Meanwhile, several events were triggered either by the user or programmatically.
Can we take for granted that no event will be handled before the outermost function finishes?
/* Example */
function outermost_function() {
function inner_function () {
function innermost_function () {
return;
}
}
}