I have a JavaScript function that makes two consecutive Ajax requests using jQuery. I want to make sure that the first request has loaded before the second function is call
The simple way is to fire the second request when the first returns (in the complete callback).
If you need a more sophisticated approach take a look at the AjaxQueue plug-in. You can queue requests this way.