title: How to test latency from user to server in browser using javascript?
body: <p>I want to gather some information using the visitors of my websites.<br/>
  What I need is for each visitor to ping 3 different hostnames and then save the following info into a DB. </p>
  
  <pre><code>Visitor IP, latency 1,latency 2, latency 3
  </code></pre>
  
  <p>Of course everything has to be transparent for the visitor without interrupting him in any way.
  Is this possible? Can you give me an example? Are there any plugins for jQuery or something to make it easier</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>This is what I have so far <a href="http://jsfiddle.net/dLVG6" rel="nofollow">jsfiddle.net/dLVG6</a> but the data is too random. It jumps from 50 to 190</p>