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 to disable/enable an element in jquery?
Difference between document.ready() and body onload()?
What is the difference between jquery.size() and jquery.length?
Whether our own specific characters are used in place of $ in jQuery?
What are the difference between empty(), remove() and detach() functions in jquery?
What is the use of queue() in jquery?
Define the script build up by jquery?
What is jQuery UI?
What are the two types of CDNs?
JQuery or JavaScript which is quicker in execution?
Explain the use of data-role=”page” attribute? : jQuery Mobile
Can JQuery Run on MAC or Linux instead of Windows?