• 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!

Viewing 1 replies (of 1 total)
  • Hi @joshwebfx

    You read my mind, I have been playing with exactly the same issue for the same reasons these last few hours, except CF7 5.4 isn’t submitting at all on one our sites, using WP Rocket with deferred script load but it is on the other…

    It is just too much work to figure this out.

    Sadly I think I am giving up on CF7 and moving over to Fluent Forms. Fluent Forms still gives reCaptcha v2 support in-built, a form database saving copies of submitted forms and no JS & CSS code on pages that aren’t form pages, which helps the load speed optimization without needing Asset Cleanup Pro plugin to remove the scripts. Plus I don’t need Flamingo as a separate DB storage plugin and it works with WP Rocket.

    My move is based on a recommendation from a page load speed expert for the above advantages.

    Hopefully you can soon find a solution to do what you need with CF7. The plugin has been great for us for many years now and I just want to thank the plugin designer for the value and benefit that has been generously given, I am grateful.

    For us its time to move on for all in one, no unnecessary code on non-form pages and a working integration with WP Rocket for better page load speed. Everyone’s situation and needs are different. These are my reasons for changing.

    Wishing you a quick solution.

    Aly

Viewing 1 replies (of 1 total)

The topic ‘Lazyload Recaptcha js’ is closed to new replies.