top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

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

+2 votes
87 views
Can we execute/run multiple Ajax request simultaneously in jQuery? If yes, then how?
posted Jul 22, 2015 by Shivaranjini

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote
 
Best answer

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.

answer Jul 29, 2015 by Manikandan J
...