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


Please Help Members By Posting Answers For Below Questions

What is jquery a client or server scripting?

472


Which one is more efficient, document.getelementbyid( "idname") or $("#idname)?

429


How to find all sibling elements in front of the current element using ?

506


How can you get the type of arguments passed to a function?

463


What is jquery toggle function?

502






Explain which program is useful for testing jquery?

8680


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

448


Tell me what does $("div") will select? : jquery mobile

479


What is queue() in jquery?

475


Which operating system is more compatible with jQuery?

510


Difference between prop() and attr()? : jQuery Mobile

475


How to get the value of selected option in jquery?

473


What are the different type of selectors in jquery?

449


What is the use of each function in jQuery?

496


How do you update ajax response with id " resilts"?

529