I am trying to understand the difference between
$.when(...).then(...)
$.when(...).done(...)
in jQuery. As far as I understood both of them executes when objects inside when are finished loading. But what is the difference. Examples will be really appreciated.
.done()has only success callback..then()has both success and fail callbacks.