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

List browser related issues for jquery?

0 Answers  


Can you please explain the difference between prop and attr? : jquery mobile

0 Answers  


What are the various ajax functions?

0 Answers  


What does $("div.parent") will select?

1 Answers  


How to read cookies in jquery?

0 Answers  


What is the difference between event.stopPropagation and event.stopImmediatePropagation?

1 Answers  


Explain cache paremeter of jquery ajax method?

0 Answers  


What is .detach()? : jquery mobile

0 Answers  


How do you disable or enable a form element?

0 Answers  


Explain the basic need to start with jquery? : jquery mobile

0 Answers  


How can we give face effect in jquery?

0 Answers  


Whether C# code behind can be called from jQuery?

0 Answers  


Categories