≡ Menu


How to wait for multiple AJAX requests to complete?

The question is - I want to run a Javascript function when all of my AJAX requests complete in jQuery. Is there a way to do that? Yes! There is a very easy way to do this. Simply use the $.when functionality provided by jQuery. For example, if you have two AJAX functions - ajax1 [...]