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 |
What is the between $(this) and 'this' in jquery?
What is the use jQuery.data method?
Explain data paremeter of jquery ajax method?
How can you apply a style on an element using jQuery?
What is a cdn? What are the advantages of using cdn?
How to read, write and delete cookies in jquery?
what is the use of param() method in jquery .
Explain .live()? : jquery mobile
Can you please explain the difference between event.preventdefault and "return false"? : jquery mobile
List the basic selectors in jquery?
How to control page titles in jquery mobile? : jquery mobile
What is the jQuery code to select all links inside the paragraph?