TOPIC:

Two declarations of Google Recaptcha javascript 3 weeks 5 days ago #247676

  • PeterChain
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 3
  • Thanks: 0
Hi, as we check with GTMetrix

(check results here) gtmetrix.com/reports/www.khromastudio.cat/lfFBZRGo

we find a double loading of this file

www.gstatic.com/recaptcha/releases/QVh-T...oB0/recaptcha__ca.js

at the

Defer parsing of JavaScript

section

Google's pagespeed is also reporting there is one unnecessary loading of this file.

Regards,

Pere.

Please Log in or Create an account to join the conversation.

Two declarations of Google Recaptcha javascript 3 weeks 4 days ago #247732

  • TheMuffinMan's Avatar
  • TheMuffinMan
  • Offline
  • Developer
  • Developer
  • Posts: 10063
  • Karma: 167
  • Thanks: 800
Hi,

I am pretty sure we cannot control this because all we do is loading the recaptcha script using the current language tag in Joomla. From there Google loads all further scripts by itself.

I thought you meant that the recaptcha element itself is appearing twice in the form (we had this issue indeed in the past) but this is not related to that.

What you can try is removing the language tag for testing in the file

administrator\components\com_breezingforms\libraries\crosstec\classes\BFQuickModeBootstrap.php

There find this line (around line 1408):
JFactory::getDocument()->addScript($http.'://www.google.com/recaptcha/api.js?'.$reCaptchaLang.'&onload=onloadBFNewRecaptchaCallback&render=explicit', $type = "text/javascript", array('data-usercentrics' => 'reCAPTCHA'));

And change it to this
JFactory::getDocument()->addScript($http.'://www.google.com/recaptcha/api.js?onload=onloadBFNewRecaptchaCallback&render=explicit', $type = "text/javascript", array('data-usercentrics' => 'reCAPTCHA'));

This will instruct recaptcha to load its default language setup. Then please check how it behaves with your page analyis.

Regards,
Markus

Please Log in or Create an account to join the conversation.

Two declarations of Google Recaptcha javascript 3 weeks 4 days ago #247749

  • Topic Author
  • PereCadenaActivacions
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 6
  • Thanks: 0
Hi,

We have changed the code line, but the problem persists.

After reading the code, we have arrived to the conclusion that the problem is not related to Breezingforms, but to the Google Recaptcha API, as the javascript file its not the one inserted by Breezingforms.

It seems like it's a bug from the Recaptcha API.

Thanks anyway for the help.

--
Víctor

Please Log in or Create an account to join the conversation.

Two declarations of Google Recaptcha javascript 3 weeks 3 days ago #247791

  • TheMuffinMan's Avatar
  • TheMuffinMan
  • Offline
  • Developer
  • Developer
  • Posts: 10063
  • Karma: 167
  • Thanks: 800
np, I will try to get more insights into this nevertheless and let you know if I can get more information.

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
  • 2
Moderators: ForumSupport
Time to create page: 0.048 seconds

BreezingForms Pro 1.4.7 for WordPress Released!

Available in the membership section.

September Discount!

Massive discounts on all subscriptions!

Get Your Subscription Here

Quick Links

Downloads

BreezingForms

ContentBuilder

BreezingCommerce

Templates

Documentation

BreezingForms

ContentBuilder

BreezingCommerce

Apprendre BreezingForms (French Community)

Apprendre et maîtriser BreezingForms par des tutoriels et exemples, le tout en français

breezingforms.eddy-vh.com

Questions et réponses sur les forums de l'AFUJ

AFUJ

Special Offer

Summer Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!