jQuery 1.5 brings the new Deferred object and the attached methods .when, .Deferred and ._Deferred. For those who haven’t used .Deferred before, I’ve annotated the source for it. What...
Here’s an contrived example of what’s going on: http://jsfiddle.net/adamjford/YNGcm/20/ HTML: <a href="#">Click me!</a> <div></div> JavaScript: function getSomeDeferredStuff() { var deferreds = ; var i = 1; for (i =...
I’ve been reading about jQuery deferreds and promises and I can’t see the difference between using .then() & .done() for successful callbacks. I know Eric Hynds mentions that .done()...