I\'m using jQuery\'s getJSONP and I want to log the duration of the call and the size of the response to be able to have some statistics about the usage of my application.
$.ajax('url',function(data,textstatus,request)
{
var totalBytes = request.getResponseHeader('Content-length');
//if u are looking for downloaded bytes
var dlBytes =request.responseText.length;
});