Mobile app version of vmapp.org
Login or Join
Deb1703797

: HTML compressor/minifier Currently I am using a system where HTML gets cached server-side before it's sent to the browser. I'm looking to compress the HTML source of my website before it is

@Deb1703797

Posted in: #Compression #Html #Optimization #Performance

Currently I am using a system where HTML gets cached server-side before it's sent to the browser. I'm looking to compress the HTML source of my website before it is cached.

Basically I'm looking for an open-source (preferably PHP) HTML compressor able to handle HTML 5, any ideas?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Deb1703797

1 Comments

Sorted by latest first Latest Oldest Best

 

@Murray432

The question here is why you would need to minify html, gzip should be fine on its own, the biggest single cost in front end speed is http requests at the server end and images in terms of pure bandwidth. HTML is so small it's barely worth the effort.

I would suggest using tools like Google Page Speed or Yahoo!'s YSlow (and reading Yahoo!'s research on the topic) to see where the problems are before you minify code - IMHO it's not a very reliable process and is more likely to cause problems with cross browser compatibility down the line.

This answer at StackOverFlow covers minification in some detail.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme