User Internet Speed Detection

Posted on 2009-05-04
Last Modified: 2012-05-06
Is there a way I can get information on how fast the person viewing my sites internet speed is, so that i can only run certain javascript, jquery, or ajax functions if there are at a certain speed?  Ideally with one of the aforementioned languages rather than a server-side language.
Question by:walker6o9
  • 2
  • 2
LVL 13

Accepted Solution

Onthrax earned 500 total points
ID: 24299102
You can do this with javascript.

Check out this page for a working example:

Author Comment

ID: 24299914
This worked great in Safari and FF, but gave me an error in IE6/7:
'bytesLoaded' is undefined
LVL 13

Expert Comment

ID: 24300016
Yeah I noticed that also. Seems onProgress is not supported by IE :(

I'll see if I can dig up an alternative.. if not at least you got it working for all other browsers except IE...

Author Comment

ID: 24300045
Unfortunately, my clients use IE 6 :(.  I know, I know.

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now