This Event

Promises, Promises

Presented by Premasagar RoseAaron Acerboni.  

@ The Skiff 6 Gloucester Street, Brighton, BN1 4EW Map of The Skiff
Last by James Jordan, on Flickr

This session, with Premasagar Rose and Aaron Acerboni, is an introduction to asynchronous flow control in JavaScript. We'll be looking at how to cleanly handle multiple callbacks from Ajax requests, setTimeouts, loading images and other asynchronous routines. In particular, we'll focus on jQuery.Deferred, which implements the Promises design pattern.

We'll work through some practical, step-by-step code examples, looking at how jQuery uses promises with all of its Ajax methods, see how they can control and interact with jQuery's animation effects, and how jQuery.Deferred can be used to create custom promises that control the flow of a website or web application.

Prem is the principal of local web applications company, Dharmafly, is a hacker and mentor at Rewired State, and helps to run Async. Aaron is currently studying Digital Media Development at Brighton University.

Update: slides & demos online

The slides can be viewed at The example demos are listed in the slides. The code repository for the slides and demos are on GitHub.

Stay up-to-date and join the community on Slack

Following Event

View all events

Previous Event

View all events