Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

How to load recaptcha script only when necessary?

$
0
0

Replies: 0

Hi. I’ve published a website which is using Gutenberg Forms for on two of ten pages.
Now, I’m wonderhing how I can force loading the forms-gutenberg/assets/scripts/recaptcha-render.js file only when necessary. The file is currently being loaded with the footer of each page. It does not matter whether there is a form on the page.
Any ideas how to manipulate this behavior?
Thanks in advance.


Viewing all articles
Browse latest Browse all 59525

Trending Articles