Can we execute/run multiple Ajax request simultaneously in jQuery? If yes, then how?
Answer / chaitanya
Yes, it is possible to execute multiple Ajax request simultaneously or in parallel. Instead of waiting for first ajax request to complete and then issue the second request is time consuming. The better approach to speed up things would be to execute multiple ajax request simultaneously.
Using jQuery .when() method which provides a way to execute callback functions based on one or more objects, usually Deferred objects that represent asynchronous events. Find out more here.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the use of clone method in jQuery?
How can related code be encapsulated?
How do you check if an element exists or not in jQuery?
Is jquery a framework?
What does dollar sign ($) means in jQuery?
What is the difference between the knockout and jquery?
What is the starting point of code execution in jquery?
What is a jquery library?
What is the difference between $(this) and 'this' in jquery?
What is queue() in jquery? Use of queue() in jquery?
Explain .bind() vs .live() vs .delegate() vs .on()
What is the difference between event.PreventDefault and "return false"?