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 resize() function in jquery?
Explain the use of data-role=”page” attribute? : jQuery Mobile
How to run an event handler only once in jQuery?
Explain .siblings() method in jquery?
What is the use of clone method in jQuery?
Why we need jquery?
Explain the difference between $(this) and 'this' in jquery?
Can we execute/run multiple Ajax request simultaneously in jQuery? If yes, then how?
What is the slowest selector in jQuery?
How can you get the type of arguments passed to a function?
Tell me how to disable jquery animation? : jquery mobile
Can you please explain the difference between prop and attr? : jquery mobile