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 |
How is the deferred method in jquery important in relation to animate method?
Does jQuery 2.0 supports IE?
Difference between $(this) and 'this' in jQuery?
What are the basic selectors in jQuery?
What does the jQuery migrate function do?
How to concatenate two strings using jquery?
What are the various ajax functions available in jquery ?
What are the slow selectors in jquery? : jquery mobile
What are selectors in jquery mean ?
What is .empty()? : jquery mobile
How to redirect to another page using jquery?
Mention some advantages of jquery.