Problem that I'm trying to solve:
I have two arrays of ajax functions.
var topPriorityAjaxCalls = [ajaxCall1, ajaxCall2, ajaxCall3]; var minorPriorityAjaxCalls = [ajaxCall4, ajaxCall5, ajaxCall6, ... , ajaxCall10];
The first set of ajax calls(topPriorityAjaxCalls) have TOP priority because the information obtained by these calls are need it as soon as the user loads the page.
The second set of ajax calls(minorPriorityAjaxCalls) will also obtained information that I want to show to the user, BUT the information is hide when the user loads the page (the accordions are closed).
In order to give priority to my first set of ajax calls, is it enough to start them first? Will all of the browsers respect the order in which I call these functions?
-- I understand that the responses from the server will be asynchronous, since A in AJAX stands for that.