Using jQuery.Deferred to control UI flow
I’ve seen tons of examples on the web about how to use promises. Most invariably show how to use in Ajax requests to handle callbacks which although very useful in that context, makes me think that is all it’s useful for.
Then, I picked up this slim book, Async Javascript by Trevor Burnham that showed how I can use promises to model user interface flows. This piqued my interests as I could really see how this could be useful.
BrainRide is a HTML5 flash card player app with a Node.js backend and Backbone frontend. The goal of the app was to create a Javascript only application that talks to a third party api to get flash card information. On top of that, I wanted to delve more into the art of “Responsive Web Design”.
