I got multiple ajax calls when my page loads, and I want to do something when all of them are finished, but I don't know when they are all finished
Is it possible to know, if so, how?
Thanks
$(document).ready(function () {
getStuff();
getStuff2();
getStuff3();
})
function getStuff() {
$.ajax({
url: '/Link/To/Stuff',
type: 'GET',
success: function () {
console.log('Success');
}
});
}
....more functions like getStuff2(), getStuff3() etc