Web Hosting Talk







View Full Version : Increasing percieved download times


chilliboy
10-26-2000, 07:13 AM
Hi,

I'm trying to get the percieved download time of my page down and was wondering if anyone can throw in some useful advice.

What I want is the text of my page to download quickly, and then the graphical ilustrations to stagger in as the page continues to load.

The total HTML of the page is only about 15K but there are about 50K worth of graphics. I have placed all the text and graphics in one table cell and used some trick alignments to reduce the html from multiple tables and cells. I'm not currently online yet so can't test these theories out. But I'm guessing the html and text should come up really quick, with the graphics staggering in. Should this work? Or would it be better to put the text in one table cell, then the graphics in an adjacent table cell. What I don't want is the whole table cell to only appear after all the graphics have down loaded.

Your thoughts are appreciated.

Chicken
10-26-2000, 12:39 PM
When the page doesn't load quickly due to a table (or all at once), it is usually due to having the table widths as percentages, and further complicating the whole thing, with tables inside tables inside tables -and mixing hard pixel values with percentages.

etLux
10-26-2000, 02:05 PM
Chicken's right (as usual) on how the HTML interpreters in (most versions of) the browsers work.

The less work you make the interpreter do, the faster the page will "present".

That means explicit dimensioning of images and tables (avoiding percentages entirely if you can -- not always easy), because oftentimes page layout cannot be calculated by the interpreter until all the elements are parsed.

Nested tables are also a problem, because the interpreter needs to get through the entire "nest" before it can present.

Stacking tables with lesser vertical height is also good technique, since it speeds "top-down" processing by the interpreter.

BC
10-26-2000, 05:52 PM
As a side note, you can use the tools available at http://www.netmechanic.com to help you determine load time..

etLux
10-26-2000, 05:57 PM
One caution on NetMechanic-like services: I have very definitely noted and confirmed that their evaluation of HTML code is often flaky, especially if there is a goodly amount of nesting. It also seems that many of them have a problem with certain types of FrontPage comments, typically those used with editorial includes.

Chicken
10-26-2000, 06:31 PM
Also, it doesn't seem to actually test the download speed. I tested it on two servers, same file, same result. This would be fine, but one of the servers tested was faster (better server, better connection). So check download speeds but keep this in mind: results are not valid.

etLux
10-26-2000, 06:34 PM
Most of these services don't actually test the speed -- they simply calculate it based on the size of the html file and the image resources used in the page. They also typically ignore the loading of things like JAVA applets, and any resources they might use.

But hey, whaddaya want fer free... lol.

etLux
10-26-2000, 06:44 PM
Just a thought, by the way, but it's easy enough to build in speed testing on a page.

You simply grab the current time in the header with a JavaScript call; then use an onload= JavaScript call in the <body> tag to grab the time again (after the page has fully downloaded).

Subract the start time from the end time; then writeln the results discreetly to the end of the page.

A more elaborate example of this idea is exercised here:

http://webservices.cnet.com/bandwidth/

[Edited by etLux on 10-26-2000 at 06:49 PM]