Viewing 15 replies - 1 through 15 (of 18 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    Generally I advice against “also aggregate inline JS” as it has a lot of downsides really, but if you want it you could try adding recaptcha in the comma-separated JS optimization exclusion list (assuming that matches a string in the inline JS)?

    Thread Starter George Lotfy

    (@glotfy)

    Do I need to put it in autopimize only or in Async Javascript too becasue when I disabled Async it works also.

    Thread Starter George Lotfy

    (@glotfy)

    The reCAPTCHA appears on website but I still got the same error

    Thread Starter George Lotfy

    (@glotfy)

    I removed both Autoptimize and Async then reinstall autoptimize with checking only Optimize JavaScript Code? in Javascript section the Google reCAPTCHA works fine, I guess the issue is related to Async javascript now.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    well, if you _need_ async javascript, then you’ll indeed have to make sure it excludes all things recaptcha.

    Thread Starter George Lotfy

    (@glotfy)

    Would you please tell me how to exclude it, because it stopped working again after installing Async Javascript and it works only I disabled it, also whats obvious that reCAPTCHA does not appear on the website unless I uncheck “also aggregate inline JS in Autoptimize.

    Thank you.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    can you share your site’s URL so I can check? ??

    Thread Starter George Lotfy

    (@glotfy)

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    OK, try adding below to the comma-separted JS optimization exclusion list (and keep AsyncJS off for now, we’ll see after we’ve managed to get it working in AO);

    wpforms, recaptcha, Recaptcha

    Thread Starter George Lotfy

    (@glotfy)

    it’s still working on Mobile
    Do you want me to enable also aggregate inline JS in Autoptimize.?

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    indeed, that would be the next step ??

    Thread Starter George Lotfy

    (@glotfy)

    Confirmed it’s working after enabling “also aggregate inline JS in Autoptimize”.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    Great! You can now try with AsyncJS, using the same exclusions.

    Thread Starter George Lotfy

    (@glotfy)

    Confirmed it’s working with or without exclusion
    Thank you very much for your help and support appreciated.
    one more question, please, does it take time to score to come back

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    no, changes are immediate, but as you have had to exlude JS from optimization (both inline and linked), you are bound to lose some points as the excluded JS not is render-blocking :-/ as such, exclusions are costly, so dropping recaptcha for something else would help?

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘Google reCAPTCHA’ is closed to new replies.