Can we execute/run multiple Ajax request simultaneously in jQuery? If yes, then how?
Answer Posted / 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 |
Post New Answer View All Answers
How can you add a jquery library in your project?
What is the use jQuery.data method?
Explain jquery.noconflict? : jquery mobile
Explain the difference between $(this) and 'this' in jquery?
How is body onload() function is different from document.ready() function used in jquery?
How do you update ajax response with id " resilts"?
How to select class in jquery?
How you will use jquery means requirement needed for using jquery.
Can you write a jquery code to select all links inside the paragraph?
Mention the differences between javascript and jquery.
How to disable/enable an element with jQuery?
How to load a page using jquery mobile? : jquery mobile
What is a filter in jquery? Explain
Explain some features of jquery knockout?
How to executed jquery selectors? : jquery mobile