Forums / Developer / How to minify html / Comment65688

Author Topic

Jerome Despatis

Tuesday 08 February 2011 12:26:11 pm

Comment65688

Thanks,

As I can read on minifying html, there can be some site performance degradation, but as you say, with varnish in front, not such a problem

Concerning the minify with tidy, in order to minify as much as possible Marko, you could look at this post:

http://php100.wordpress.com/2006/10/30/html-compact/

There's a working setting for tidy, with one extra str_replace to delete the \n

But minifying is not yet one html line, due to inline css/js not minified.

Still have to look this point, but result is good enough for now, my google page speed is going to be happy !