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
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Guide to Performance: Optimization & Monitoring

Nowadays, monitoring is a mixture of tools, systems, and codes—making it a very complex process. And with this complexity, comes variables for failure. Get DZone’s new Guide to Performance to learn how to proactively find these variables and solve them before a disruption occurs.

Question has a verified solution.

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

Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

728 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