Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 209
  • Last Modified:

Any easy way to serve pages based on bandwidth speed?

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: http://leadinc.no/drupal7/ 

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.
1 Solution
Jesus RodriguezIT ManagerCommented:
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.
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.

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now