Reputation: 1412
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
Reputation: 2564
Try jQuery.ajaxStart() and jQuery.ajaxComplete() functions to record the time to get response from server.
Upvotes: 1