I'm using jquery and have two variables.
trackFeatures - single ajax request, artistRequests - array of ajax requests
I want to do something when both trackFeatures and artistRequests have completed. For just artistRequests, I can do:
$.when.apply($, artistRequests).done(function() { ... }
Is there a way to combine the single request with the array requests? Besides adding the single request to the array or testing them sequentially.
Thanks