Osclass 3.7.4 core recaptcha v2 code edit

I am improved my osclass site but still recaptcha js slow down. So, i want to edit captcha div class line but i cant find code location.
This code where coming from …? No any captcha plugin used. builtin captcha function v2 enabled.

<div class="g-recaptcha" data-sitekey="4D5n-MqZdxIyPsNcIT89"><div style="width: 304px; height: 78px;"><div><iframe title="reCAPTCHA" src="https://www.google.com/recaptcha/api2/anchor?ar=1&amp;k=4D5n-MqZdxIyPsNcIT89&amp;co=aHR0cHM6Ly93d3cubWFzc2FnZXNwYWluZGlhLmNvbTo0NDM.&amp;hl=en&amp;v=_7Co1fh8iT2hcjvquYJ_3zSP&amp;size=normal&amp;cb=g4ifo1b9ario" width="304" height="78" role="presentation" name="a-qkgkniwyhg82" frameborder="0" scrolling="no" sandbox="allow-forms allow-popups allow-same-origin allow-scripts allow-top-navigation allow-modals allow-popups-to-escape-sandbox"></iframe></div><textarea id="g-recaptcha-response" name="g-recaptcha-response" class="g-recaptcha-response" style="width: 250px; height: 40px; border: 1px solid rgb(193, 193, 193); margin: 10px 25px; padding: 0px; resize: none; display: none;"></textarea></div><iframe style="display: none;"></iframe></div>
<script type="text/javascript" src="https://www.google.com/recaptcha/api.js?hl=en"></script> 

here i want to add async or defer - but how …?

oc-includes/osclass/helpers/hUtils.php around line 170, search for “https://www.google.com/recaptcha/api.js”.

1 Like

Thanks, found this code nearby 145 line number. So much time spend on google but here finally found.

now core web vitals speed optimization must IMP for osclass. I am good speed improved on my https://in.nearmeads.com site.

1 Like