I have 3 ajax call for particular functionality. 3rd call is dependent of first 2 calls i.e. for the 3 rd call first 2 calls has to be finished. But first 2 AJAX calls are independent. So I want them to be async and execute parallely.
How to structure these calls now? I tried to put them in nested success block of respective calls, but it that case first 2 calls are also not independent.
Kindly suggest with some sudo code, if possible.