Is there a way to request the users connection speed?
So that if the user has broadband, load the site with high graphics and stuff... but if they have 56k load it in the lower bandwidth version of the site???
Users connection speed
Moderator: General Moderators
Usually you can load a graphic, say 100kb and have javascript foward the user to another page only once the page has fully loaded, and time the how long it takes for the user to arrive at the final page***. Not reliable, better option is to allow the user to select his connection speed, or automatically default to broadband and allow the user to select dialup if they so choose.
*** do this in a hidden iframe and display a message so all the user sees is "Detecting connection speed"
*** do this in a hidden iframe and display a message so all the user sees is "Detecting connection speed"
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
You could possibly do a similar thing using AJAX. Send a small image with known size and record on the client how long it takes to download. Then send that info using AJAX back to the server to send the correct version of the site. Wouldn't be good for SEO though.... in fact it would be terrible 
It also falls down if the clients themselves are using available bandwisth elsewhere (e.g. P2P software).
It also falls down if the clients themselves are using available bandwisth elsewhere (e.g. P2P software).
- ambivalent
- Forum Contributor
- Posts: 173
- Joined: Thu Apr 14, 2005 8:58 pm
- Location: Toronto, ON
okay, well i found some javascript code that got the conn speed for you, but it uses the uploading that image.
mabye i will ask the user for their conn speed, if they dont know send them to a site that will test it for them, and then I will store it in a session/cookie so that each time they view the site it will check their speed and load up the page like its supposed too, and I will provide a default broadband page that will be linked too for SEO
how does that sound?
mabye i will ask the user for their conn speed, if they dont know send them to a site that will test it for them, and then I will store it in a session/cookie so that each time they view the site it will check their speed and load up the page like its supposed too, and I will provide a default broadband page that will be linked too for SEO
how does that sound?
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia