Rob Dodson 5/30/2012

Using jQuery Deferred to Load an Underscore Template

Read Original

This technical tutorial details a practical approach to loading Underscore.js templates and JSON data using jQuery's Deferred and Promise objects. It explains the core concepts of Deferreds, provides a code example from Backbone Boilerplate, and demonstrates how to structure asynchronous calls to avoid nested callbacks (the 'pyramid of doom').

Using jQuery Deferred to Load an Underscore Template

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week