You could attempt to get around this by using image pre loaders in the background ..the effectiveness of this is going to depend on your design layout ..
Also ten seconds to load image pages! I run some 90% image sites with images served from the US and have nowhere near that long to wait!..am on dsl in France and incoming speed is an actual 250kb per sec max ( they tell me 6.00 to 8.00 megs ..they lie ..I knew they did when I signed up ..they lied less than the "competition" of which we dont have much )..
How big is your average image? remember most ( 98% ) of people run at definitions that mean anything over 72dpi is wasted on them ..run low to medium res "teaser" "click throughs" at entry pages and high res as lead outs ( with warnings about "large files" etc )..
BTW your UK server space and specs costs way less than french for the same deal so be relatively happy..
doesn't geotargeting by search engines suck?..Let the searcher decide the relevancy of where the data is hosted!
the images are small 20-50kb and 9 on each page.
I'll look into the image preloaders, thanks for the tip
It sounds like you've got PHP scripts running on the UK server querying a database on a US server. Round trip time between the UK and US is about 70msecs. For each database query, PHP has to wait at least 70msec for the reply. If you have 20 queries, that'll add at least 1.4 seconds to the time it takes PHP to build the HTML.
From a responsiveness angle, the first thing I'd do is get PHP and the database nearer to each other, or at least on the same continent.
So having them all on the same server would really speed things up then.
what about if I put the two servers next to each other in one UK data centre in a private LAN?
is that going to be close to the performance I'd get from using one server for all the work?
Also make the images "progressive" type if jpegs ..( gives 'm something to keep them interested whilst the rest is sneaking in ) given the sizes you are using your load times are long ..thats only 250 to 600 kb including estimated html and copy ..
Preload ..java scripted feed or whatever
Design later loading stuff to come in below the fold
Combine both ideas and use "thumbs" page and let "them" interrupt your sequence of "sneaky" preloading larger images via script interrupts/variables/ifs..you can script the .js as an include at under 4kb at onload ( this may slow down older browsing machines if they choose out of sequence jumps to "large image" as the processor load is heavy at under pentium III or equivalent and with only 32 to 64 ram ) ..depends on your target demographic ..and how fast they can read your text whilst they are "waiting" for your images to preload in the background
|Design later loading stuff to come in below the fold |
interestingly I think because the bulk of the page is leaded via the php scripts and the US sever the entire page does not display until it is all downloaded. I think this is because the php is loaded before the html code.
thanks for the other ideas - I'll run some tests to see what the improvement is like.
So far it looks like I'll still need to relocate the first server out of the US
py9jmas - looking at your reply some more I think I could have more than 20 queries. But I'm not sure exactly how I would go about calculating how many queries I have.
I know I have 10 different php scripts on the page that call the US server and one database connect script. But I'm not sure how many queries each script contains.
What is the question I would ask to decide if a queries is needed?
And so you know what the round time equivalent would be for the private server LAN alternative?
Read that you were php( actually missed it "php" completely the first reading ;) and py9jmas later stuff after posting my last reply ..
yep ..if using php "calls" ..move your server will make the biggest difference ..design etc are just tweaks compared to that..
Why not keep your images on the same server as you are running your pages from? One server is almost always better than 2 given modern hosting specs ..
I agree with you Leosghost,
but I'm so nervous about changing my core business server. I just know stuff will go wrong and I'll be offline for days.
at this stage I've made the tweeks suggested and I'm in the process of merging all the php US server requests into one big php include. In theory this is going to reduce the number of UK > US server requests down to two (database access & everything else).
the final option is to move the server but as above I'm scared and the increased bandwidth costs are the icing on the cake
So do the rest of your mods and ..run a thumbs page or pages on the UK box and serve the larger images out of the states as per earlier ..
UK servers are what ..? about 3 times the cost of US plus bandwidth at 3 to 5 times US costs? ..images are your largest "hog" ..donc "no brainer" ..
Go through your logs with a fine toothed comb and see who bails out fast after arriving , where they came from "geo" , how fast they got maybe tired of waiting , what files , image or other did they call just before they went ..and what they did during the time they were onsite ..
And if they do so in numbers/percentages large enough to make any difference to your sales or ROI..given the possible increase in overheads to maybe mitigate their actions.
Be carefull you are not chasing shadows here ..it can be an expensive and relatively unproductive game