Web page compression

Discussion to talk about software related topics only.
Post Reply
thomastaranowski
Posts: 82
Joined: Sun May 11, 2008 2:17 pm
Location: Los Angeles, CA
Contact:

Web page compression

Post by thomastaranowski »

I notice my .css and .js files are not getting compressed via the comphtml tool. Has anyone experimented with enabling compression for css and javascript files? This would save me quite a bit of space, and probably allow me to start using protoype, etc.

Excerpt from htmldata.cpp showing no compression.

<snip>
{"ajaxBanner.htm",FilePointer0,5,eHuffmanHtml,eTypeHtml},
{"site.css",FilePointer17,4767,eNoCompression,eTypeCSS},
{"site.js",FilePointer18,7202,eNoCompression,eTypeOther},
{"index.htm",FilePointer19,3468,eHuffmanHtml,eTypeHtml},
<snip>
greengene
Posts: 164
Joined: Wed May 14, 2008 11:20 am
Location: Lakeside, CA

Re: Web page compression

Post by greengene »

i see what you are seeing with the eNoCompression, but my builds
show that my *.js files are being compressed. the nb code at
first glance looks like nothing should be getting done, but my
sample cases show something is. this topic came up previously in
the following thread:
http://forum.embeddedethernet.com/viewt ... ?f=5&t=620
so it looks like the nb-ers will have to pipe in.
enquiring minds want to know!
Post Reply