jacklenox / susty

🌍 A tiny WordPress theme focused on being as sustainable as possible. https://sustywp.com
GNU General Public License v2.0
930 stars 105 forks source link

Save 134 bytes by removing Yoast comment #10

Closed cenkdominic closed 6 years ago

cenkdominic commented 6 years ago

This removed the comment that Yoast adds to every page, thus saving 134 bytes.

<!-- This site is optimized with the Yoast SEO plugin v7.8 - https://yoast.com/wordpress/plugins/seo/ -->

<!-- / Yoast SEO plugin. -->
dartiss commented 6 years ago

I would question the benefit of this.

Stripping comments more generally from the HTML would be better as a plugin, imo.

dartiss commented 6 years ago

https://wordpress.org/plugins/remove-html-comments/ maybe?

cenkdominic commented 6 years ago
  • First of all, it's only going to be of use to those using Yoast - is the plan to support other plugins as well? Well, Jack mentioned using Yoast ("just 6KB of data transfer, or 7 with Yoast!"). But yes, agreed, we should add a function to strip all comments instead.