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 |
Consider a scenario where things can be done easily with javascript, would you still prefer jQuery?
What is the difference between javascript and jquery?
How to fetch the values of selected checkbox array using jquery?
What are the popular jquery cdn? : jquery mobile
Difference between javascript and jquery? : jQuery Mobile
Tell me what does dollar sign ($) means in jquery? : jquery mobile
What are the slow selectors in jquery? : jquery mobile
Write a code for the implementation of a module pattern.
List the advantages of jquery?
How to validate email using jquery?
Why jQuery is needed?
What is the use of param() method?