So in using jQuery deferreds and $.when to load many objects in parallel.
$.when(
a.ajax(), b.ajax(), c.ajax()
).then(
//do something when all are complete
complete();
);
Now, b.ajax() will sometimes fail, but I dont actually care. I just want to wait until all the calls have completed before calling complete().
Unfortunately, as soon as b fails, the when() rejects, and never fires the then()callback. This is AFAIK expected behaviour for $.when(), however dosent suit me in this case.
I effectively want a way to say:
$.when(
a.ajax(), b.ajax().fail(return success), c.ajax()
).then(...)
Or perhaps there is a different way to use when(), or a more suitable construct?