Can we execute/run multiple Ajax request simultaneously in jQuery? If yes, then how?
Answer Posted / 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 |
Post New Answer View All Answers
What is the use of the animate() method in jquery?
How to get the style property of an element using ?
How to use css() in jquery?
How do you select an item using css class or id and get the value by use of jquery.
Differentiate between calling stop (true, true) and finish method?
Explain the basic need to start with jquery? : jquery mobile
Explain .on()? : jquery mobile
How to use jquery.connect?
Define the use jquery.data method?
How to set attributes of an element using jquery?
What are the features of jQuery, has been used in web applications?
What is the use of param() method?
How to control page titles in jquery mobile? : jquery mobile
Explain finish method in jquery? : jquery mobile
What is the difference between find and children methods?