Pingjs is a JavaScript library. It cleverly use the JavaScript’s native Image object to find the responsive time. Its example use has been provided by the author. The first “ping” to your target server is always incorrect. It counts the DNS resolve time in, hence I implemented this API to an endless loop of ping, …