$.when.apply(undefined, requests).then(function(){ console.log('Всё хреново.'); }, function(){ console.log('Всё ОК.'); });