The order will always be ACDB if the ajax request is not synchronized, but it is not really recommended to use it because it makes the user interface freeze.
For example, try this (in Chrome, preferably)
function f1() {
var s = '';
for (var i = 0; i < 10000000; ++i) {
s += 'a';
}
}
function f2() {
var s = '';
for (var i = 0; i < 10000000; ++i) {
s += 'b';
}
}
Ext.require('Ext.Ajax');
Ext.onReady(function() {
var d;
Ext.Ajax.request({
url: 'data.json',
success: function(){
console.log('finished');
}
});
d = new Date();
f1();
console.log(new Date() - d, 'f1 done');
d = new Date();
f2();
console.log(new Date() - d, 'f2 done');
});
, 1 , ajax , 7 ( ). , f1/f2.