Hello,
If the comment is not there, it’s either another plugin removing that comment, or minify by CloudFlare or something like that, otherwise, it’s shutting down our process while still returning the output too early.
Check if you have any other caching/minify plugin. Are you using Cloudflare?
If that’s not the case enable Minify debug in Performance>General settings, debug sub box, save all settings and inspect your page.
I am using Cloudflare without Minification. I will enable Minify Debug and check the output.
The problem occurs only when HTML & XML Minification is enabled. Otherwise, everything works fine even with minification enabled. Given below are the debug values.
Minify debug info:
Theme: d64b0
Template: single
Hello,
Can you please add the following to wp-content/plugins/w3-total-cache/lib/Minify/Minify/HTML.php replacing lines 346 and 347 with
$m[2] = preg_replace( '/([a-z0-9]=)\'([^"\'\\s=]+[^"\'\\s=\\/])\'(\\s(?!\\/)|>)/i', '$1$2$3', $m[2] );
$m[2] = preg_replace( '/([a-z0-9]=)"([^"\'\\s=]+[^"\'\\s=\\/])"(\\s(?!\\/)|>)/i', '$1$2$3', $m[2] );
See if the issue persists..
Hi Marko. I was glad to try this out but the issue persists.