Page 1 of 1

Web page compression

Posted: Sun Mar 28, 2010 7:29 pm
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>

Re: Web page compression

Posted: Mon Mar 29, 2010 5:55 pm
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!