Quote:
Originally Posted by ja3
I use
$output=preg_replace ('/(\s*)\r\n(\s*)/', "", $output);
$output=preg_replace ('/<!-- .*? -->/',"",$output);
and get about 15% compression, don't know why you still need the \r\n? 
|
ja3, I noticed a bit later in this thread you detected an error in your code, but I didn't see you place a fix for it. If I use both lines you have here I get an error on the page with certain dimensions and directories (like the misc image directory not being defined. But if I just use the second line I get no errors and about 10 - 15% compression. Was there a fix for the first line?