I have checked the ping response time following code. But this value differ about 100ms
to real value.
How to check the correctly ping response time using javascript in client-side?
$.ajax({
url: 'https://jsfiddle.net/',
method: 'HEAD',
start_time: new Date().getTime(),
success: function(data) {
alert('This request took '+(new Date().getTime() - this.start_time)+' ms');
}
});