By José F. Romaniello + | Published: 2011/09/26 Please read my new and more accurate blog post about promises first: here Notice this blog post has lot of runnable examples in Javascript, but it might not work on a rss reader. JQuery 1.5 introduced the concept of “Deferred”, you can read more about it here . I find this concept very powerful when working with Javascript and ajax, and I think is a game changer to the way we are used to write asynchronous code in js. Usually, the way we are used to deal with asynchronous code in Javascript is passing callbacks as an argument to the function:
Read full article from Understanding JQuery.Deferred and Promise
No comments:
Post a Comment