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 |
How We Can Write Code Specific To Browser In Jquery?
What is wrong with this code line "$('#myid.3').text('blah blah!!!');"
Can we add more than one ‘document.ready’ function in a page?
What are the advantages of minified version of jquery?
Do you have plans for a new jquery plug-in or something else we should look out for? Where to from here for the imgpreview plugin?
How to check data type of any variable in jquery? : jquery mobile
Is jquery a w3c standard? : jquery mobile
Tell me is jquery a library for client scripting or server scripting? : jquery mobile
Difference between prop() and attr()? : jQuery Mobile
How is body onload() function is different from document.ready() function used in jquery?
Change the url for a hyperlink using jquery?
Explain the difference between find and children methods in jquery?