Maya
Maya

Reputation: 1412

JQuery AJAX Request/Response

Is there a JQuery built-in function or an easy way to get the time an AJAX request has taken to receive a server response? it might be a bit tricky that all my AJAX requests are asynchronous, for example there could be a second request sent by the client under way before receiving a first request response therefore a unique identification for each request is needed.

Thanks.

Upvotes: 1

Views: 358

Answers (2)

Ashish
Ashish

Reputation: 2564

Try jQuery.ajaxStart() and jQuery.ajaxComplete() functions to record the time to get response from server.

Upvotes: 1

Vitor Furlanetti
Vitor Furlanetti

Reputation: 451

You can use Firebug on firefox or the Inspector in Chrome

Upvotes: 2

Related Questions