-
AuthorPosts
-
April 17, 2020 at 3:21 pm #1204728
Is there a way to only load Recaptcha JS files on the page which utilizes forms . Why load it through out the website , it causes money pages to load extra stuff and increase loading time . This would be a good change for upcoming update of Enfold theme too .
April 19, 2020 at 6:03 pm #1205295Hey 7thflow,
Please have a look at the following thread:
If you need further assistance please let us know.
Best regards,
VictoriaApril 20, 2020 at 11:45 am #1205471The function that was mentioned in the post is no longer in the file mentioned . Also recaptcha code and files are still getting loaded on all pages , can we just limit it to the page where it is used .
April 22, 2020 at 4:48 pm #1206263Hi 7thflow,
Well, this option is not available at the moment. I will forward this as a feature request, our devs will consider it for implementation.
Best regards,
VictoriaApril 30, 2020 at 9:55 am #1208467Can you suggest some work around . I only need some limiting factor to load recapcha files
Regards
May 6, 2020 at 8:31 am #1210246Hi,
You can use the avf_load_google_recaptcha_api_prohibited filter to prevent scripts from loading on pages without contact forms.
Thank you for your patience.
Best regards,
IsmaelMay 6, 2020 at 8:45 am #1210251Why do you change the name of the filter with the same functionality and – yes, it is now no longer “disable” but “prohibited” ?
That you generally wanted to change the name of the filter to avf- is understandable, but that was already given here.
I have to go and check now my installations, where I used the old filter name.To those who are interested to use this filter with contact-form-7 too:
that one line :
$prohibited = ( false !== strpos( $content, '[av_contact ' ) ) ? false : true;
has to be replaced by:
$prohibited = ( false !== strpos( $content, '[contact-form-7 ' ) || false !== strpos( $content, '[av_contact ' ) ) ? false : true;
May 11, 2020 at 10:46 am #1211795Hi,
Why do you change the name of the filter with the same functionality and – yes, it is now no longer “disable” but “prohibited” ?
The whole recaptcha script has been refactored and Guenter might have missed or forgot to use the same name for the filter. Thank you for understanding.
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.