Viewing 5 replies - 1 through 5 (of 5 total)
  • Thanks for the patch @thomasbachem but unfortunately we’re not going to add it to the plugin.

    The HTML comments are there so we can know which are the tags generated by our plugin and which are not, when looking into a specific website.

    Most of the problems listed on this forum are caused by people using more than one plugin.

    Thread Starter thomasbachem

    (@thomasbachem)

    Hi Marco, I understand that, but sometimes you don’t want to expose that you’re using a specific plugin (or even WordPress at all) and want to keep your HTML as clean and tiny as possible.

    Could a compromise be to make it less easy to hide the comments for normal users, e.g. to only not output them if a constant WEBDADOS_FB_HIDECOMMENTS is defined or similar? This would make the feature only accessible to power users / custom theme developers.

    If you are so serious about hiding what you’re using (WordPress included, which I think is not that easy), I’m pretty sure you can find ways to filter the entire output from WordPress and remove any HTML comments insert by any plugin, this one included πŸ˜‰

    Thread Starter thomasbachem

    (@thomasbachem)

    Using an output buffer would decrease performance significantly, since I would have to wait for the entire page to be ready before sending any output to the user πŸ™‚

    Sorry, we will not add an option to remove comments.
    That can be done with any minification plugin or other output buffer method.

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

The topic ‘Patch: Add option to disable HTML comments’ is closed to new replies.