Multiple Ajax Requests – Single Callback Function jQuery

We have three Ajax Requests to perform in page Simultaneously, so many methods available in jQuery to perform this action, but here i going to give the best way. let’s see

Multiple Ajax Requests - Single Callback Function jQuery


Normal ajax function and success callback

Now we have multiple ajax requests to perform, first we will see the old method here we need to wait for all three ajax requset to complete one by one before doing anything,
its slow,

So we will see the new method to do the multiple ajax request in parallel with single call back success function, here we will use the $.when() function