Using jQuery Deferred to Load an Underscore Template
Read OriginalThis 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').
Comments
No comments yet
Be the first to share your thoughts!
Browser Extension
Get instant access to AllDevBlogs from your browser