Support » Plugin: LiteSpeed Cache » Contact Form 7 ReCAPTCHA issue

  • Resolved Ian Pegg



    I’ve just updated to v5.1.1 of CF7 and implemented the new Google ReCAPTCHA v3. It works fine logged in (as all caching is turned off for my admin account), but when logged out the external asset that gets loaded in from is requested after the inline script that it supports. This leads to an Uncaught ReferenceError as the inline script gets executed first and so ends up trying to refer to an object that doesn’t exist yet.

    The external resource is added by CF7, so I don’t have the luxury of editing the load order of the script myself without editing the plugin. Because the uncached version of the page works fine, it seems that your plugin is changing the load order of JS resources as part of its optimisation process. Using your plugin, is there a way to give a higher load priority to a particular script so that I could force the external resource to be fetched before the inline script executes?

    Thanks for your help!

Viewing 15 replies - 16 through 30 (of 33 total)
Viewing 15 replies - 16 through 30 (of 33 total)
  • The topic ‘Contact Form 7 ReCAPTCHA issue’ is closed to new replies.