jQuery Deferred’s, $.when() and the fail() callback arguments
$.when() will execute the failed callback (2nd parameter passed to then()) immediately if any one of the parameters fails. It’s by design. To quote the documentation: http://api.jquery.com/jQuery.when/ In the multiple-Deferreds case where one of the Deferreds is rejected, jQuery.when immediately fires the failCallbacks for its master Deferred. Note that some of the Deferreds may still … Read more