Commit f2403d69 authored by Nguyễn Văn Ánh's avatar Nguyễn Văn Ánh

Load non-blocking api.

parent 3302fba2
......@@ -50,7 +50,7 @@ class NoCaptcha {
{
$attributes['data-sitekey'] = $this->sitekey;
$html = '<script src="'.$this->getJsLink().'"></script>'."\n";
$html = '<script src="'.$this->getJsLink().' async defer"></script>'."\n";
$html .= '<div class="g-recaptcha"'.$this->buildAttributes($attributes).'></div>';
return $html;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment