Using jQuery pending objects , you can use $.when to call a callback when several asynchronous calls are completed:
$.when(scheduleSubjects.fetch(), subjectList.fetch(), assignments.fetch()).then(_this.render);
Note that this works because JQuery.ajax , and therefore Backbone.fetch , returns a pending object.
An alternative to .then is .done , which passes you the parameters of the original callbacks (which you don't need in the OP, but you can in some cases):
$.when(scheduleSubjects.fetch(), subjectList.fetch(), assignments.fetch()) .done(function(scheduleSubjects, subjectList, assignments) { _this.render(); }) );
source share