Fortunately, there are some simple techniques that can save you from nested callback hell. Among the most exciting of these are Promises.
Promises have been a part of jQuery since 1.5, but they haven’t yet gotten the love they deserve as a simple, elegant alternative to callback arguments. With Promises, you can write smaller callbacks and write more readable, reusable code.
Comments on this page are now closed.
For information on exhibition and sponsorship opportunities at Fluent conference, contact Gloria Lombardo at (203) 381-9245 or firstname.lastname@example.org.
For information on trade opportunities with O'Reilly conferences contact mediapartners
View a complete list of Fluent contacts