wp-rocket icon indicating copy to clipboard operation
wp-rocket copied to clipboard

Disable Google Fonts Optimization module when Cloudflare APO is enabled

Open pedddro opened this issue 2 years ago • 2 comments

Is your feature request related to a problem? Please describe. Cloudflare APO currently strips Google fonts from Google and hosts them locally. The preconnect links are unnecessary.

Describe the solution you'd like Disable Gfonts optimization when APO is in use to remove the unnecessary preconnect links.

Describe alternatives you've considered

Additional context There are already warning messages and detection code for APO in Wp Rocket, I guess it would be easy to add this feature.

pedddro avatar Jan 19 '23 22:01 pedddro

Cloudflare will add a new Google fonts optimization free product, probably also good to recognize when a user is using it and disable the preconnects.

pedddro avatar Sep 26 '23 14:09 pedddro

Cloudflare will add a new Google fonts optimization free product, probably also good to recognize when a user is using it and disable the preconnects.

Yeah I've started using Cloudflare fonts and a simple setting to disable the Google fonts optimization is badly needed. Right now I have to remove the resource hint using a filter and then also disable the option using WP-CLI. I deal with A LOT of sites and a checkbox toggle to turn it off would make things much easier.

thekendog avatar Oct 31 '23 12:10 thekendog