victorjonsson / jQuery-Form-Validator

[DISCONTINUED] jQuery plugin that makes it easy to validate user input while keeping your HTML markup clean from javascript code.
973 stars 477 forks source link

Recaptcha after page load jquery #754

Open mittultechnobrave opened 2 years ago

mittultechnobrave commented 2 years ago

Hi Team,

@victorjonsson Hope I get some support from this as I found this plugin very helpful.

Currently I am using recaptcha from this plugin like below.

$( document ).ready(function() {  

    $.validate({

        modules: 'security, sanitize, date',
        scrollToTopOnError: false,
        reCaptchaSiteKey: 'MY_KEY',
        reCaptchaTheme: 'light'
    });
});

And in my HTML <input data-validation="recaptcha" >

And its working as per my requirements.

However, I am having few issues in Google PageSpeed which suggests me to load ReCaptcha after page load.

So I am just wondering is there a way to load this after my page load using this library ?

Any help or suggestion will be highly appreciated.

Thanks in advance.