HTML Compressor

Talk about new features for CMSMS and modules.
Post Reply
viebig

HTML Compressor

Post by viebig »

Compress the HTML, generating smaller pages and saving a few kbytes, should be optional
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: HTML Compressor

Post by calguy1000 »

It's in 1.4
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
User avatar
kermit
Power Poster
Power Poster
Posts: 693
Joined: Thu Jan 26, 2006 11:46 am

Re: HTML Compressor

Post by kermit »

if you're just talking about removing whitespace and extra lines, there's a couple smarty ways to do that in your templates..

see http://www.smarty.net/docs.php


if you're talking about gzip compression of the html output, there's a quick mod to index.php that'll do that..

if (substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip')) ob_start("ob_gzhandler");
else ob_start();
// original line below:
# ob_start();
eternity (n); 1. infinite time, 2. a seemingly long or endless time, 3. the length of time it takes a frozen pizza to cook when you're starving.
4,930,000,000 (n); 1. a very large number, 2. the approximate world population in 1986 when Microsoft Corp issued its IPO. 3. Microsoft's net profit (USD) for the quarter (3 months) ending 31 March 2007.
CMSMS migration and setup services | Hosting with CMSMS installed and ready to go | PM me for Info
viebig

Re: HTML Compressor

Post by viebig »

great, ty guys!

MODs are great, but i do prefer native features.


kermit, by the way.. full page caching is great!
Pierre M.

Re: HTML Compressor

Post by Pierre M. »

HTTP compression is a native webserver feature. No need to reimplement it whatever the CMS behind.

Pierre M.
User avatar
kermit
Power Poster
Power Poster
Posts: 693
Joined: Thu Jan 26, 2006 11:46 am

Re: HTML Compressor

Post by kermit »

Pierre M. wrote: HTTP compression is a native webserver feature. No need to reimplement it whatever the CMS behind.
not always enabled on shared servers......
eternity (n); 1. infinite time, 2. a seemingly long or endless time, 3. the length of time it takes a frozen pizza to cook when you're starving.
4,930,000,000 (n); 1. a very large number, 2. the approximate world population in 1986 when Microsoft Corp issued its IPO. 3. Microsoft's net profit (USD) for the quarter (3 months) ending 31 March 2007.
CMSMS migration and setup services | Hosting with CMSMS installed and ready to go | PM me for Info
cyberman

Re: HTML Compressor

Post by cyberman »

viebig wrote: Compress the HTML, generating smaller pages and saving a few kbytes, should be optional
There's a (very old) module in SVN - not sure if it works with current versions

http://dev.cmsmadesimple.org/projects/codemangler/
Last edited by cyberman on Wed Jul 02, 2008 6:38 am, edited 1 time in total.
viebig

Re: HTML Compressor

Post by viebig »

cyberman wrote:
viebig wrote: Compress the HTML, generating smaller pages and saving a few kbytes, should be optional
There's a (very old) module in SVN - not sure if it works with current versions

http://dev.cmsmadesimple.org/projects/codemangler/
I dont see any files there!
cyberman

Re: HTML Compressor

Post by cyberman »

As I said it's only available via SVN ;)

http://dev.cmsmadesimple.org/scm/?group_id=59
Post Reply

Return to “Feature ideas”