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 are the different types of selectors in jquery?
How do you install/use jquery in a project. What is the minimum setup needed to start using jquery.
Is Uncaught TypeError: $(…).modal not a function jquery?
Tell me how to select combobox select value and text using jquery?
Define jquery connect?
Can JQuery Run on MAC or Linux instead of Windows?
How do you get the text value of a selected option?
How to write browser specific code using jquery? : jquery mobile
Why is the block display style used for animations?
What is the between $(this) and 'this' in jquery?
Define cdn in jquery?
Does events are also copied when you clone any element in jQuery?