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 |
When can jquery be used?
Can we use our own specific character in the place of $ sign in jQuery?
What is the use of jQuery.data() method?
Define animate function in jquery?
Tell me how to write browser specific code using jquery? : jquery mobile
What is difference between prop and attr?
How to increase cursor size in html body using jquery?
Explain bind() vs live() vs delegate() methods.
Please explain remove class jquery with example?
Can you include multiple version of jQuery? If yes, then how they are executed?
Explain the difference between onload() and document.ready() function used in jquery?
Mention the advantages of cdn? : jQuery Mobile