JRS: In article <9f**************************@posting.google.com >, seen
in news:comp.lang.javascript, D. Alvarado <la***********@zipmail.com>
posted at Mon, 14 Jun 2004 14:05:54 :
Hello, I would like to design a page that measures the user's download
connection. Does anyone have an example link or script that might aid
me in this task?
<URL:http://www.merlyn.demon.co.uk/js-date1.htm> measures, if the
receiving computer is not distracted, the time taken to transfer the
majority of the page, and shows it at the end.
In the absence of cache effects, this gives a rough estimate of the
current download speed; not an entirely trustworthy one, but better than
nothing. It includes the time taken to render the page.
One might reasonably use it to decide whether to load a large graphic
unconditionally, or only on user request. If a 30 kB page was fetched
over a link in under a second, it is reasonable to believe that the link
is fast; if it took over a minute, that it is slow.
But the data must be treated with considerable caution.
--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 IE 4 ©
<URL:http://jibbering.com/faq/> JL / RC : FAQ for news:comp.lang.javascript
<URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.