Skip to content

Instantly share code, notes, and snippets.

@twokul
Created January 31, 2013 16:56
Show Gist options
  • Save twokul/4684323 to your computer and use it in GitHub Desktop.
Save twokul/4684323 to your computer and use it in GitHub Desktop.
$.when($.ready.promise(), collection.fetch({
'silent': true
})).then(function () {
// Collection retrieved and the DOM is ready...
}, function () {
// Error handling; retrieval failed...
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment