Skip to content

Commit

Permalink
[plg_captcha_recaptcha]
Browse files Browse the repository at this point in the history
Pull Request for Issue #9623

##Summary of changes

Defer implementation of the script google recaptcha

##Testing instructions

Install Joomla width sample data
  • Loading branch information
vinespie committed May 23, 2016
1 parent de084ce commit 8876905
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/captcha/recaptcha/recaptcha.php
Expand Up @@ -59,7 +59,7 @@ public function onInit($id = 'dynamic_recaptcha_1')
else
{
$file = 'https://www.google.com/recaptcha/api.js?onload=JoomlaInitReCaptcha2&render=explicit&hl=' . JFactory::getLanguage()->getTag();
JHtml::_('script', $file);
JFactory::getDocument()->addScript($file, "text/javascript", true);
JHtml::_('script', 'plg_captcha_recaptcha/recaptcha.min.js', false, true);
}

Expand Down

0 comments on commit 8876905

Please sign in to comment.