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 related code be encapsulated? Give example.
Why jquery?
Describe the two types of cdns?
Explain the use of jquery .each() function? : jquery mobile
Difference between find() and closest() in jquery?
What are the popular jquery cdn? : jquery mobile
What is jquery.size()? : jquery mobile
Mac, windows or linux? Why do you love this platform while using jquery?
Define jquery connect?
What is resize() function in jquery?
Differentiate between jquery.size and jquery.length? : jQuery Mobile
Explain various methods to make ajax request in jquery?
Why content injected into a page is not enhanced? : jquery mobile
Explain width() vs css(‘width’)?
What is the difference between jquery and javascript?