Bienvenido, Invitado
Recordarme

TEMA:

Two declarations of Google Recaptcha javascript 1 año 3 meses antes #247676

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.

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Two declarations of Google Recaptcha javascript 1 año 3 meses antes #247732

  • Avatar de TheMuffinMan
  • TheMuffinMan
  • Fuera de línea
  • Developer
  • Developer
  • Mensajes: 10064
  • Karma: 167
  • Gracias recibidas: 808
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

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Two declarations of Google Recaptcha javascript 1 año 2 meses antes #247749

  • Autor del tema
  • PereCadenaActivacions
  • Fuera de línea
  • Fresh Breezer
  • Fresh Breezer
  • Mensajes: 6
  • Gracias recibidas: 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

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Two declarations of Google Recaptcha javascript 1 año 2 meses antes #247791

  • Avatar de TheMuffinMan
  • TheMuffinMan
  • Fuera de línea
  • Developer
  • Developer
  • Mensajes: 10064
  • Karma: 167
  • Gracias recibidas: 808
np, I will try to get more insights into this nevertheless and let you know if I can get more information.

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

  • Página:
  • 1
  • 2
Moderadores: ForumSupport
Tiempo de carga de la página: 0.046 segundos