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

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

1 Answers  


What methods used to provide effects?

1 Answers  


How to delete cookies in jquery?

1 Answers  


How does jquery mobile theming work? : jquery mobile

1 Answers  


How do you install/use jquery in a project.

1 Answers  


How to select combobox select value and text using jquery?

1 Answers  


Why is the block display style used for animations?

1 Answers  


What are two different version of jquery library? : jquery mobile

1 Answers  


Write a code for the implementation of a module pattern.

1 Answers  


What is the use of the animate() method in jquery?

1 Answers  


What is difference between onload and ready?

1 Answers  


Which sign is used as a shortcut for jQuery?

1 Answers  


Categories