• Good day folks,

    We have discovered that using certain functionality, like Google’s reCAPTCHA script to fight form spam is actually harming our site speed. The issue is this functionality is dependent on loading numerous third party JavaScript and CSS files preemptively when a form may not even be used by the visitor. This functionality adds extra weight and requests in order for the website to load which is not recommended.

    Therefore, we would like to know if you need to provide any extra code on the functions.php file or change the configuration in the form settings to defer the loading of the reCAPTCHA script until a visitor interacts with the contact form (preferable).

    Once again, your help on this matter is greatly appreciated.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Ethan Choi

    (@ethanchoi)

    Hi @copiaurbietorbi,

    Thanks for reaching out!

    Currently, we don’t have the option to defer the loading of WPForms assets as it requires assets to load in the sequential order for the forms to work.

    However, WPForms only loads its assets conditionally on pages where forms are embedded.

    If you’re seeing WPForms assets loaded on pages that are not using any forms, please let us know your site URL so we can take a look.

    Thanks!

    Thread Starter Copiaurbietorbi

    (@copiaurbietorbi)

    Thank you for getting back to us.

    It seems most of the javascript deferred is related to recaptcha. Not sure how you can manage this on settings when configuring the form.

    Thank you for your help.

    Plugin Support Ethan Choi

    (@ethanchoi)

    Hey @copiaurbietorbi,

    I apologize as we don’t have the option to defer scripts used in WPForms for now.

    If you’d like to avoid using reCAPTCHA, you can consider having only the new anti-spam protection. This replaces the honeypot anti-spam option, and is enabled by default in new forms. For older forms, you can manually switch to the new anti-spam option (as shown in this screenshot).

    Thread Starter Copiaurbietorbi

    (@copiaurbietorbi)

    Hello Ethan,

    We are going to try the option you suggested and see the results later. Google doesn’t offer any support to solve this type of issues and their reCAPTCHA is just adding more time to the load time on the site by increasing the number of requests.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Defer parsing of JavaScript, Recaptcha’ is closed to new replies.