: 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
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?
More posts by @Deb1703797
1 Comments
Sorted by latest first Latest Oldest Best
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.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.