I have a need to collect data from multiple sources (xml or JSON format) via AJAX, and then run a function that consumes these data sets.
How can I check that all the AJAX calls are successful before the function is executed? Ideally, I’d like to keep async calls to minimize the response time.
Conceptually, it would work like this:
Some pseudo code for an ajax call: