Forums / Developer / How to minify html / Comment65779
Jerome Despatis
Thursday 10 February 2011 1:23:16 am
For your information, the developer of HTML.php has answered me about the question on adding break lines to limit line length, here is his answer:
-----
The line breaks don't add any size since they replace single spaces. The rumor is some source control systems have trouble with very long lines (I've seen this in YUI Compressor docs). Since Minify_HTML is not a parser, I can't count characters then insert breaks, so I just put them wherever it's easy to.
------
So indeed, I really think those breaklines can be deleted...
Concerning page_speed, yes, in fact this is THE apache module for minifying and perform some stuff. But I'd like to avoid to have a specific apache config, as I may have no hand on it, depending on hosting (on a cloud for example, but maybe I have the hand on the apache config on this, I haven't tested that yet...)