include google api.js script only when needed
-
I notice I have the
<script src="https://www.google.com/recaptcha/api.js?hl=it"></script>in the homepage even if there is no need for it in there, no forms whatsoever.
COuld you automatically do it register only when really needed or make a filter available to let user overide via theme or plugin function.
That’s because it slows down pagespeed especially on mobile devices.
(that’s what is saying google pagespeed here, but in italian, sorry)
https://developers.google.com/speed/pagespeed/insights/

Thank you
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘include google api.js script only when needed’ is closed to new replies.