• Resolved Yohan Perera

    (@thevirtualpreacher)


    I am using W3 Total Cache in my blog. Unfortunately, the ‘Performance optimized by W3 Total Cache…’ tag disappears from the Page Source every time I activate CSS and JS minification in W3 Total Cache.

    Note: I use Jetpack

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    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.

    Thread Starter Yohan Perera

    (@thevirtualpreacher)

    I am using Cloudflare without Minification. I will enable Minify Debug and check the output.

    Thread Starter Yohan Perera

    (@thevirtualpreacher)

    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

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    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..

    Thread Starter Yohan Perera

    (@thevirtualpreacher)

    Hi Marko. I was glad to try this out but the issue persists.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘W3 Total Cache: Issues with Minification’ is closed to new replies.