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 read cookies in jquery?
Explain slidetoggle() effect.
What is the between $(this) and 'this' in jquery?
Can you please explain the difference between prop and attr? : jquery mobile
How to multiple version of jQuery?
What is the use of jquery .each() function?
How to always reference latest version of jquery?
How do I pull a native DOM element from a jQuery object?
What is jQuery code to select all links in first paragraph?
What is get()? : jquery mobile
How do you stop the currently-running animation, remove all queued animations, and complete all animations for the matched elements?
How to check if number is numeric while using jquery 1.7+? : jquery mobile