Lazyload Recaptcha js
-
Hi!
In the /modules/recaptcha/index.js js, is it possible to request this to be dependent on grecaptcha.ready versus DOMContentLoaded?When trying to delay script execution of recaptcha for site speed optimization, we haven’t been able to come up with a solution where the hidden recaptcha response populates properly when trying to delay recaptcha.
The optimization we’re exploring is via WP Rocket’s ‘delay script execution’ and using ‘recaptcha’ as the keyword to delay.
Have you or your team ever completed something like this? Or is the grecaptcha.ready feature request feasible?
Ideally we’d want to run google pagespeed insights and not have recaptcha contribute to script execution, which would be achievable with delaying that particular recaptcha__en.js and still have /modules/recaptcha/index.js trigger!
Thanks!
The topic ‘Lazyload Recaptcha js’ is closed to new replies.