Forum Moderators: open

Message Too Old, No Replies

HTML compressors

Code... so tiny, so tiny

         

Filipe

7:34 pm on Apr 11, 2003 (gmt 0)

10+ Year Member



I know servers have some sort of inherent HTML compression, but I'm not clear exactly on how that works, since the HTML code on one end ends up the same as HTML code on hte other end.

Is there any server software that will parse an HTML document prior to delivering it and cut out unnecessary whitespace and comments? That is to say, it won't take out whitespace between the A and HREF here:

<A HREF="...">

and it won't take out whitespace between the <TD> and <IMG> here:

<TD> <IMG SRC="...">

because those might be essential whitespaces. But in cases like this:

So
Much
Uneccesary
Whitespace!

they would. Does any such software exist?

pendanticist

7:43 pm on Apr 11, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The last time I looked (and tried a few), they took out too many whitespaces (with certain codings). That was awhile ago, so things may be a bit different now.

Since then, I've just gotten into the habit of pulling all the brackets [> and <] together.

In any case, I'd be interested in finding them too.

Pendanticist.

ikbenhet1

8:11 pm on Apr 11, 2003 (gmt 0)

10+ Year Member



search for squisher in google. The 1st listing let's you do it 5 times for free online.

grahamstewart

6:16 am on Apr 12, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Your modem uses a compression algorithm when it is talking to your ISP. This algorithm should heavily compress whitespace before it is sent to you.

So I'm dubious whether there is any real benefit in speding time removing all the white space from your html. Any saving you make will be very small and probably not noticable.