I have two concurrent ajax calls on the page. I want to call a function when both of them are complete (and successful).
An inefficient solution:
- make ajax call A
- on success for call A, make call B
- on success for call B, call the function
Unfortunately, this breaks the concurrency.
Any other way I can accomplish the same effect?