• Hi Derrick,

    First of all great plugin! I want to use it, however when I activate it my HTML isn’t minified anymore (basic functionality of WP Rocket). Any ideas on this?

    Thanks and regards,
    Jeroen

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Derrick Hammer

    (@pcfreak30)

    The only time I have had issues with html minification was when the theme attempted to do it for me. Besides that it sounds like its specific to your site and possibly theme.

    Hi,

    I have exactly the same problem.
    HTML is no more minified when the plugin is up…

    I’m only using WP Rocket where minification is activated.

    Regards,

    Plugin Author Derrick Hammer

    (@pcfreak30)

    Please add pcfreak30 on skype. I will need to take a backup of your site to test it locally and see whats going on.

    Plugin Author Derrick Hammer

    (@pcfreak30)

    @jeroendebeurs, @m_scud, Looking it appears html isn’t minified as the css plugin does not re minify after saving from DOMDocument. I don’t see this a a huge issue right now as you should be using my js plugin to which handles the re-minify.

    Thanks.

    Thread Starter Jeroendebeurs

    (@jeroendebeurs)

    Hi Derrick,

    Thanks for your quick reply. I also use your WP-Rocket Footer JS plugin, this doesn’t solve the problem. However, like you said it isn’t a big issue. I’ve minified some parts myself.

    Thanks,
    Jeroen

    Ced

    (@cedriccharles)

    Hello Derrick ?? !

    It seems that I have the exact same problem with WP Rocket and both your plugins (JS and CSS). The HTML minification doesn’t work…

    Thank you in advance!

    Plugin Author Derrick Hammer

    (@pcfreak30)

    Hmm, what is happening actually is that the html minify is only ran on the js plugin right now, $buffer = $this->do_minify_html( $buffer );.

    Since php domdocument/libxml is used to process the markup, any minify would get sort of undone. The js is processed after the css, so right now if both are active html minify should work fine.

    Worse case is that you send me a backup of your site over email to test the problem.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘HTML Minification breaks’ is closed to new replies.