English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

How or What do I use to compress my HTML? Are such things supported by the majority of browsers?

2007-06-22 00:55:49 · 3 answers · asked by Am 4 in Computers & Internet Programming & Design

3 answers

Google term: gzip compress on servers.
Here's one I got by Google: http://betterexplained.com/articles/how-to-optimize-your-site-with-gzip-compression/

HTML compression needs to be supported by your server. Browsers which support compression in a compression format known as gzip will indicate so in their request headers. The server, if it supports compression, can then compress HTML accordingly. All modern browsers can uncompress gzip, so they will support it.

Focus on compressing easily compressable data. HTML, CSS, and Javascript are plain text and easily compressed. If you have a lot of XML or txt data to send, compress them as well.

@Andy T: check with Google before shouting out a random answer.

@Tracy: HTML ...is... large enough need compression. It's a lot of redundant plain text, and is also easily compressable. All major sites have large HTML pages and many CSS files. Try checking out file sizes yourself for once.

2007-06-22 01:31:33 · answer #1 · answered by csanon 6 · 2 0

Why? Normally HTML is not large enough to need compression. If it is, you need to rethink your site design.

Generally the images and other items that are linked to an HTML page are the size generators so there really is no reason to compress the actual HTML code.

Reworking images and links usually will generate much smaller pages not needing compression.

2007-06-22 08:08:00 · answer #2 · answered by Tracy L 7 · 0 3

Not supported, I have no idea on the rationale why such thing is not done.

2007-06-22 08:07:32 · answer #3 · answered by Andy T 7 · 0 1

fedest.com, questions and answers