What We’ve Learned

In my opinion, Promises are one of the most exciting features to be added to jQuery in years. Not only are they a big help in smoothing out the callback spaghetti that characterizes typical Ajax-rich apps, but they also make it much easier to coordinate async tasks of all kinds.

Using Promises takes some practice, especially when using pipe, but it’s a habit well worth developing. You’ll be peering into the future of JavaScript. The more APIs return Promises, the more compelling they become.

Microsoft has announced that Windows 8’s Metro environment will have a Promise-based JavaScript API.[37] Where hipster developers and Microsoft both go, the rest of the world is bound to follow.

Get Async JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.