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 get/set the html contents of an element using jQuery?
What methods used to provide effects?
How to delete cookies in jquery?
How does jquery mobile theming work? : jquery mobile
How do you install/use jquery in a project.
How to select combobox select value and text using jquery?
Why is the block display style used for animations?
What are two different version of jquery library? : jquery mobile
Write a code for the implementation of a module pattern.
What is the use of the animate() method in jquery?
What is difference between onload and ready?
Which sign is used as a shortcut for jQuery?