Basically that’s the question (parentheses are important)
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
.ajaxStart()and.ajaxStop()are for all requests together,ajaxStartfires when the first simultaneous request starts,ajaxStopfires then the last of that simultaneous batch finishes.So say you’re making 3 requests all at once,
ajaxStart()fires when the first starts,ajaxStop()fires when the last one (they don’t necessarily finish in order) comes back.These events don’t get any arguments because they’re for a batch of requests:
.ajaxSend()and.ajaxComplete()fire once per request as they send/complete. This is why these handlers are passed arguments and the global/batch ones are not:For a single documentation source, the Global Ajax Events section of the API is what you’re after.