In part 1 of this post, I spent a lot of time looking at the theory of promises and deferreds: what promises are and how they behave. Now it's time to actually explore some ways to use promises and deferreds in JavaScript and dive into some best practices. I'll start with some basic uses and examples of promises and then will dive into a number of specifics pertaining to using promises in jQuery.
Via @cwebbdesign
Your new post is loading...
In-depth examination of using promises, jQuery's .then() and sequencing tasks in JavaScript.