• Resolved Ruslan

    (@ruslanpiskarev)


    Hello @dipakcg.

    On one my website I am using “WP Super Minify” with enabled “Compress JavaScript” AND “Compress CSS”. It works fine except one thing.

    In my content, I have HTML comments via:

    <!--googleoff: all-->
    text
    <!--googleon: all-->

    and all HTML comments are stripped.

    But if I disable the plugin or just uncheck “Compress JavaScript” AND “Compress CSS” (BOTH), only in this case I can see HTML comments.

    So my question, how to prevent to strip HTML comments in the content area added by an editor? Is it possible?

    Thank you in advance.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Dipak C. Gajjar

    (@dipakcg)

    @ruslanpiskarev,

    This plugin (and most of the minify libraries) eliminate as many characters as possible, especially whitespaces, line breaks, new lines and comments to reduce the overall size. This is how minification should work.

    Current plugin version 1.5.1 doesn’t support such functionality that prevents comment stripping. But yes, I am happy to consider it as a new feature for any future release.

    Thread Starter Ruslan

    (@ruslanpiskarev)

    Hello @dipakcg,

    Thank you in advance. Because of it very important to keep such comments specially added by an editor/moderator.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How prevent to remove in the content area’ is closed to new replies.