Briefly, say I have CallPage1, CallPage2 and DoSomething. Both CallPage are async.
CallPage1 called CallPage2 called DoSomething called CallPage1 Returned (DoSomething is now paused) DoSomething ended CallPage2 Returned The DoSomething() function is paused when the ajax response arrives. The callback for the ajax is called and only then, DoSomething() resumes its execution.
I didn't know what to expect : will the callback function be called before or after the loop?
Thanks to you all!