Any easy way to serve pages based on bandwidth speed?

Posted on 2011-10-21
Last Modified: 2012-05-12
I got a client who wants to serve a rotating banner of very heavy images (some as much as 326kb) on his homepage. On a fast connection, that's not a problem.

But on a dial-up connection I am right now (overseas, in the middle east), waiting for his homepage to load is a long ordeal. I can't imagine anyone wanting architectural work bad enough to sit thru this:  

The client doesn't want to spend more money and I've done a lot of freebies already.

But even half of America is still dialup - isn't that true? I don't dare to show this site to anyone lest they have dialup and think my work is crap.

Is there some easy-to-setup script to measure client bandwidth (or just measure loading  time) and switch to a pre-determined lighter page?

Site is built on Drupal 7, php, served on apache, linux.
Question by:polaatx
    LVL 13

    Expert Comment

    by:Jesus Rodriguez
    Try to reduce the Size of the image or optimizd it as much as you can. Uso photoshop for it and adjust the pixrl and resolution to the width and height of the image.
    LVL 19

    Accepted Solution

    My best suggestion would be to grab $GLOBALS["REMOTE_ADDR"] and run something like fping in the background which can shoot off a few very quick pings to the client and not hurt the initial load time too quickly.

    My best estimates would be something like:
    0-40 ms average = normal (full size) site
    40-80 ms average = slightly lighter version
    >100ms average = stripped down version

    BTW, I very much doubt that stat about half of America being on dialup - I work for a large telecom provider in the US, and our dialup product has all but disappeared.  But I do know that a lot of rural areas in the country still only offer either dialup, slowish DSL, or various high latency cellular or satellite offerings, so there are still a lot of crippled clients out there.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Article by: kevp75
    Hey folks, 'bout time for me to come around with a little tip. Thanks to IIS 7.5 Extensions and Microsoft (well... really Windows 8, and IIS 8 I guess...), we can now prime our Application Pools, when IIS starts. Now, though it would be nice t…
    JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
    In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
    HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

    758 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

    13 Experts available now in Live!

    Get 1:1 Help Now