Consider the following scenario:
ajaxCall() {
$.ajax({
...
...
success: function(response) {
event2();
}
});
}
If we have a sequence of calls like this:
event1();
ajaxCall();
event3();
Can we be certain that events will always execute in the order of event1(), event2(), and event3() without setting the async flag?