You can exclude plugin’s scripts from every page except the ones where you need it with something like:
if ( !is_page( array( ‘your-page-slug-1’, ‘your-page-slug-2’ ) ) ) {
wp_deregister_script( ‘google-invisible-recaptcha’ );
}
Ciao Giovanni,
Thank you for getting back to us. That’s a good idea. Should we include this in functions.php on the child theme or where exactly?
Thank you for your help!
Hello, in case you are interested, I did it with a plugin and we talk about it on this page:
https://ww.wp.xz.cn/support/topic/google-recaptcha-any-reason-to-load-it-even-on-page-where-its-not-used/
no problem until now, and this plugin helps a lot to fasten a wordpress website also.
Hello catboulin,
Thank you for the note. Are you referring to the asset clean up plugin or which one?
yes, so crazy, my website now loads in 1.3s thanks to this plugin
https://ww.wp.xz.cn/plugins/wp-asset-clean-up/
and i only use the free version, so i guess it could even be better ? Please people tell me if you try and find even better settings.
Hello catboulin,
Thank you for your message. That’s great man!
So, what plugins are using to resolve the cache? Are you using any other in combination to this one?
Also, what kind of warnings do you get when you run a speedtest? Does this plugin help you with the recaptcha requests?
Thank you for your help!
Sorry i’m not so good but was a bit high yesterday and worked all night to do things that I never managed / succeeded to do before.
First I installed this plugin
https://ww.wp.xz.cn/plugins/wp-asset-clean-up/
Then I add more motivation to install
https://ww.wp.xz.cn/plugins/async-javascript/
which also recommended me
https://ww.wp.xz.cn/plugins/autoptimize/
The result is very good and i have checked thoroughly my woocoommerce store and everything seems to work well. Also no php error in error log.
I was so happy that I wanted to share my happiness !
I hope that it can be useful for the community, because it’s so complicated to find/understand what to do to improve speed.
Hello Catboulin,
Thank you for sharing this information. We will look into it and hopefully our site gets faster.
Have a good weekend.