Can we execute/run multiple Ajax request simultaneously in jQuery? If yes, then how?



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

Post New Answer

More jQuery Interview Questions

Tell me which command will give a version of jquery?

0 Answers  


Is numeric in jquery?

0 Answers  


Explain .siblings() method in jquery?

0 Answers  


How to get/set the html contents of an element using jQuery?

0 Answers  


What is the basic need to start with jQuery?

1 Answers  






What does the jQuery migrate function do?

0 Answers  


What is the starting point of code execution in jquery?

0 Answers  


What is jQuery UI?

2 Answers  


Need to add jQuery file in both Master and Content page?

0 Answers  


What is the difference between prop and attr?

0 Answers  


How to use jquery.connect?

0 Answers  


How to load jQuery locally when CDN fails?

1 Answers  


Categories