Promises in JavaScript By Rajat Mittal Sample implementation of JQuery's implementation of Promises via the Deferred object in JQuery 1.5. Feel free to do whatever you want to do with this code.