Forum Moderators: open

Message Too Old, No Replies

HTML Compression Tool

         

hulahoop

5:15 pm on Oct 31, 2005 (gmt 0)

10+ Year Member



Hello,

I have been trying to search out a good good HTML compression tool. Hope someone can point me to which tool is the best.

Also seeing that it compresses the codes. what is the best way to organize my files (compreseed and original). I'll need a system going to ensure originals are kept. Any suggestions?

BlobFisk

5:36 pm on Oct 31, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi hulahoop,

A search for "html compression tool" on your favourite search engine should give you some good results...

Dave McClure

10:43 am on Nov 2, 2005 (gmt 0)

10+ Year Member


Some html compression tools don't understand to leave the content of <pre> tags well alone!

hulahoop

12:03 pm on Nov 2, 2005 (gmt 0)

10+ Year Member



what does the <pre> tags do?
Some are free others are about $19.99.
I did try one and it could only go down about 20%.

Trying to find the best buy.

Dave McClure

1:27 pm on Nov 2, 2005 (gmt 0)

10+ Year Member


<pre> </pre>

The pre tags let you pre-format your text, using line returns and white space. For example, a poem placed between pre tags will be rendered correctly, but if placed between <p> </p> tags all the line breaks would be ignored and it would display as a block of prose, unless you put a <br> at the end of every line.

White space and line returns are meaningless in html and are removed by compression tools, but they ought to know not to remove white space between <pre> tags as it is the author's intention to have it there.

hulahoop

2:25 pm on Nov 2, 2005 (gmt 0)

10+ Year Member



oh...thanks for explaining about the pre tags.
appreciate it. will look out for it if the compression tool messes it up.

MatthewHSE

2:27 pm on Nov 2, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



My advice...stay away from HTML compression tools altogether and use mod_gzip or some other server-side compression option. The compression tools you're talking about work by removing whitespace, double-quotes, etc., and it really makes it hard to work on the page later if you need to. You can get up to 80% compression or so using gzip, with the added advantage of being able to read your HTML at a later date.