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 |
Which selector has better performance id or class and why?
What are the selectors in jquery? How many types of selectors in jquery?
How you get server response from an ajax request using jquery?
What are the advantage of using cdn? : jquery mobile
What is $('div')? : jquery mobile
What does $("P") will select?
Can you please explain the difference between parent() and parents() methods in jquery? : jquery mobile
Mac, windows or linux? Why do you love this platform while using jquery?
How to write cookies in jquery?
Tell me how to disable jquery animation? : jquery mobile
Tell me how to write browser specific code using jquery? : jquery mobile
What are the methods used to provide effects in jquery?