|
Convenient web based access to our favorite web design Usenet groups
|
 |
This is Interesting: Free Magazines for Graphics designers and webmasters
| Author |
| Thread |
 |
|
|
|
|
|
 |
 |
 |
Don't bother saving white-space |
 |
|
 |
|
|
|
  08-20-04 - 03:38 AM
|
People in these groups, and on web-pages, not infrequently suggest that
it is worthwhile cutting down on white-space and comments in HTML and
CSS in order to reduce loading times. I and others have more than once
doubted this, given the data-compression in the HTTP protocol. Having
seen it suggested again a couple of times in the last few days, I
decided it was time for a test on the effect of white-space.
I took one of my pages:
http://www.xs4all.nl/~sbpoley/webmatters/checklist.html
which is 20 Kb.
I then bloated it with whitespace to 162 Kb (nothing special about that
number - it's just what it happened to end up as):
http://www.xs4all.nl/~sbpoley/misc/checklist.html
I tested them over my 46 Kbps modem connection (yes: 46, not 56; don't
ask - I don't know either) using Opera 7.
The first page loads in 3 seconds, the second in 8 seconds - both
figures seem to be repeatable. This suggests that if you took a file
with a fairly generous 5Kb of white-space, and stripped out all of it,
loading would be speeded up by a princely one-sixth of a second. (For
comparison, the largest HTML file on my site, of 79Kb, turned out to
have just under 3Kb of compressible white-space.)
Somehow it just doesn't seem worth it ...
--
Stephen Poley
http://www.xs4all.nl/~sbpoley/webmatters/
|
|
|
| [
Post Follow-Up to this message ]
|
|
|
|
|
 |
 |
Re: Don't bother saving white-space |
 |
|
 |
|
|
|
  08-20-04 - 03:38 AM
|
On Thu, 19 Aug 2004 20:49:58 +0200, Stephen Poley
<sbpoleySpicedHamTrap@xs4all.nl> wrote:
> People in these groups, and on web-pages, not infrequently suggest that
> it is worthwhile cutting down on white-space and comments in HTML and
> CSS in order to reduce loading times. I and others have more than once
> doubted this, given the data-compression in the HTTP protocol. Having
> seen it suggested again a couple of times in the last few days, I
> decided it was time for a test on the effect of white-space.
>
> I took one of my pages:
> http://www.xs4all.nl/~sbpoley/webmatters/checklist.html
> which is 20 Kb.
>
> I then bloated it with whitespace to 162 Kb (nothing special about that
> number - it's just what it happened to end up as):
> http://www.xs4all.nl/~sbpoley/misc/checklist.html
>
> I tested them over my 46 Kbps modem connection (yes: 46, not 56; don't
> ask - I don't know either) using Opera 7.
>
> The first page loads in 3 seconds, the second in 8 seconds - both
> figures seem to be repeatable.
For me, original=3secs, bloated=21 secs.
The extra white space amounts to 142 Kb. Took me 18 extra seconds to load.
About 8Kb per sec, or close to the same for the original file. This would
seem to indicate there is value in reducing white space.
|
|
|
| [
Post Follow-Up to this message ]
|
|
|
|
|
 |
|
|
 |
|
|
 |
|
|
 |
|
|
 |
|
|
 |
 |
Re: Don't bother saving white-space |
 |
|
 |
|
|
|
  08-20-04 - 03:38 AM
|
Stephen Poley wrote:
> People in these groups, and on web-pages, not infrequently suggest that
> it is worthwhile cutting down on white-space and comments in HTML and
> CSS in order to reduce loading times. I and others have more than once
> doubted this, given the data-compression in the HTTP protocol. Having
> seen it suggested again a couple of times in the last few days, I
> decided it was time for a test on the effect of white-space.
>
> I took one of my pages:
> http://www.xs4all.nl/~sbpoley/webmatters/checklist.html
> which is 20 Kb.
>
> I then bloated it with whitespace to 162 Kb (nothing special about that
> number - it's just what it happened to end up as):
> http://www.xs4all.nl/~sbpoley/misc/checklist.html
>
> I tested them over my 46 Kbps modem connection (yes: 46, not 56; don't
> ask - I don't know either) using Opera 7.
>
> The first page loads in 3 seconds, the second in 8 seconds - both
> figures seem to be repeatable. This suggests that if you took a file
> with a fairly generous 5Kb of white-space, and stripped out all of it,
> loading would be speeded up by a princely one-sixth of a second. (For
> comparison, the largest HTML file on my site, of 79Kb, turned out to
> have just under 3Kb of compressible white-space.)
>
> Somehow it just doesn't seem worth it ...
>
My opinion is that the total size (i.e. images included) is to be
considered.
According to http://www.websiteoptimization.com/ a analysis on your page
/webmatters/checklist.html gives this result
Total Size: 43638 bytes
HTML: 19685
Images: 18539
CSS: 5414
Total Images: 4
Download Times*
56K 8.90 seconds
Same analysis on the page misc/checklist.html
Total Size: 189818 bytes
HTML: 165865
Images: 18539
CSS: 5414
Total Images: 4
Download Times*
56K 38.03 seconds
So, if (at it looks) you don't change anything else than adding
whitespace to the code, the download time change with aprox 29 sec for a
56K dial up connection!
--
Arne
|
|
|
| [
Post Follow-Up to this message ]
|
|
|
|
|
 |
|
|
 |
 |
Re: Don't bother saving white-space |
 |
|
 |
|
|
|
  08-20-04 - 03:38 AM
|
On Thu, 19 Aug 2004, Stephen Poley wrote:
>On Thu, 19 Aug 2004 20:41:12 +0100, Alan J. Flavell wrote:
>
> It may be of interest that when gzipped, your file sizes came out as
> 7711 and 8805 respectively.
I have just been playing with various arcane
aspects of Zip compression over on c.l.j.p., so
I was particularly interested to see if you had ..
a) 'blobbed' the white-space in a large chunk, as opposed to
b) giving an extra space or two between each word,
..for example.
The reason is that most compression algorithms
will compress the 'large space' better than many
small spaces.
And.. yes, I noticed you made that mistake,
large chunks of whitespace that are easily
compressible, with a fairly clear pattern.
I would be convinced only if you started from
the outset with a more realistic (chaotic)
example.
--
Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology
|
|
|
| [
Post Follow-Up to this message ]
|
|
|
|
|
 |
|
|
 |
| All times are GMT. The time now is 03:52 PM. |
 |
|
|
|
|
|  |
|