Providing Synchronous / Asynchronous Flexibility With jQuery.when | ThoughtStream.new :... - 0 views
-
Jacques Bosch on 30 Mar 12"I've quickly become a fan of jQuery's Deferred / Promise features. They've been around for a little bit now, but I only recent started using them and they've helped me solve a number of problems with my asynchronous JavaScript code. But what I recently figured out really blew my mind. You can use jQuery to support both synchronous and asynchronous code, with the `$.when` function, and your code doesn't have to care whether or not it's async."