Login | Register   
RSS Feed
Download our iPhone app
Browse DevX
Sign up for e-mail newsletters from DevX

By submitting your information, you agree that devx.com may send you DevX offers via email, phone and text message, as well as email offers about other products and services that DevX believes may be of interest to you. DevX will process your information in accordance with the Quinstreet Privacy Policy.

Tip of the Day
Language: JavaScript
Expertise: Beginner
Jul 9, 1999



Building the Right Environment to Support AI, Machine Learning and Deep Learning

Checking Net Speed

Is there a script that can gauge site visitors' net connection speed and route them to the proper link? In particular, I'd like to "auto link" my real video files so that my substantial number of ISDN/WAN visitors will be re-routed to the best quality high speed RealVideo Clips, while the phone world will be routed to the 28.8 version.

Actually, this problem is tough in general. Not only is this information not available from JavaScript, it isn't really available in general. This is largely due to the way the Internet works. Although it could theoretically be possible figure out the speed at which a user is connected, the actual throughput from a server to a user depends on a large number of variables and can change second to second. My recommendation is provide both links to the user and have them choose.

DevX Pro
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



Thanks for your registration, follow us on our social networks to keep up-to-date