Title: remove html comment tag
Last modified: November 3, 2019

---

# remove html comment tag

 *  Resolved [multidimentional](https://wordpress.org/support/users/multidimentional/)
 * (@multidimentional)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/remove-html-comment-tag/)
 * So I noticed that this line
 * <!– This page is cached by the Hummingbird Performance plugin v2.1.1 – [https://wordpress.org/plugins/hummingbird-performance/](https://wordpress.org/plugins/hummingbird-performance/).–
   >
 * appears at the very top of every page forcing !Doctype declaration to the right.
 * I used the following
 * add_filter(‘( $wphb_cache_config’,’__return_false’);
 * (found in class-page-cache.php line 1190)
 * Apparently it works but now I am not sure if this is the best way.
 * Another option would be to use
 *  function callback($buffer) {
 * but this will slow website down significantly.
 * Any help appreciated. Thank you in advance.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fremove-html-comment-tag%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  [Anton Vanyukov](https://wordpress.org/support/users/vanyukov/)
 * (@vanyukov)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/remove-html-comment-tag/#post-12092805)
 * Hi [@multidimentional](https://wordpress.org/support/users/multidimentional/),
 * There is nothing wrong in putting a comment before a doctype declaration. It’s
   part of the W3C standard: [https://www.w3.org/TR/2012/WD-html-markup-20121025/documents.html#conformant-documents](https://www.w3.org/TR/2012/WD-html-markup-20121025/documents.html#conformant-documents)
 * Best regards,
    Anton

Viewing 1 replies (of 1 total)

The topic ‘remove html comment tag’ is closed to new replies.

 * ![](https://ps.w.org/hummingbird-performance/assets/icon-256x256.gif?rev=2633221)
 * [Hummingbird Performance - Cache & Page Speed Optimization for Core Web Vitals | Critical CSS | Minify CSS | Defer CSS Javascript | CDN](https://wordpress.org/plugins/hummingbird-performance/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/hummingbird-performance/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/hummingbird-performance/)
 * [Active Topics](https://wordpress.org/support/plugin/hummingbird-performance/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/hummingbird-performance/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/hummingbird-performance/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Anton Vanyukov](https://wordpress.org/support/users/vanyukov/)
 * Last activity: [6 years, 6 months ago](https://wordpress.org/support/topic/remove-html-comment-tag/#post-12092805)
 * Status: resolved