• Resolved ennovator

    (@ennovator)


    I’ve turned the js/css combine settings to on which seems to help in google speed tests and making the pages mobile friendly, however when doing so one issue occurs with wpforms and specifically, I think, with recaptcha.

    The recaptcha suddenly doesn’t show or work and I get the WPForm ‘Heads up! WPForms has detected an issue with JavaScript on this page. JavaScript is required for this form to work properly, so this form may not work as expected’ message appearing for admins.

    Is there a way to fix this without turning off minification or combined files as this is the only thing that has gone wrong since turning those settings to on, and I’d prefer a faster well indexed site to a contact form that doesn’t work, but ideally I’d like both??

    I’ve already tried adding /recaptcha/api.js to the tuning js excludes.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi,

    If you’re still using V3.6.4, you’ll have this issue resolved without page speed scores compromised when you update the LSCWP plugin to the latest version. The latest Dev Commit is now V4.1-rc27. After you update your plugin to the latest version, turn on “Guest Mode” and turn off all the JS settings, and your issue will be resolved then.

    Regards.

    Thread Starter ennovator

    (@ennovator)

    Hi there, I tried that. The version is already 3.6.4 but the issue seems to be that the Recaptcha on the form just isn’t loaded (if v2 checkbox) or ‘Google reCAPTCHA verification failed, please try again later.’ if v3.

    Thread Starter ennovator

    (@ennovator)

    Is there not a way to exclude Recaptcha from JS combine caching? It seems like my pages are only mobile-friendly when JS combine is on. I can set the form to use no recaptcha and it works but that’s surely going to invite spam right? I still get the ‘Heads Up’ message when recaptcha is turned off but the form does go through.

    • This reply was modified 3 years, 9 months ago by ennovator.
    • This reply was modified 3 years, 9 months ago by ennovator.
    • This reply was modified 3 years, 9 months ago by ennovator.
    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    I actually don’t see any recaptcha related JS in name-wise

    please try use wpforms as keyword to JS exclude , you may need to add it into both JS exclude and defer JS exclude

    save and purge all

    Best regards,

    Thread Starter ennovator

    (@ennovator)

    Hi Qtwrk, you were right. Adding wpforms worked. I previously tried using wpforms.js in excludes which didn’t work, so was led to thinking it was recaptcha (as that was the part not showing), but taking the .js out and just leaving wpforms did the trick.

    Thanks for your help.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Litespeed Blocking Recaptcha on WPForms’ is closed to new replies.