Hi frank,
I think the problem is that this block of codes:
<script type="text/javascript">
// <![CDATA[
var RecaptchaOptions = {
custom_translations: {
instructions_visual: "Type the two words:",
instructions_audio: "Type what you hear:",
play_again: "Play sound again",
cant_hear_this: "Download sound as MP3",
visual_challenge: "Visual challenge",
audio_challenge: "Audio challenge",
refresh_btn: "Get two new words",
help_btn: "Help",
incorrect_try_again: "Incorrect. Try again.",
},
theme: "clean",
lang: "en",
tabindex: 5
};
// ]]>
</script>
is being compressed along with other scripts on my page which make it’s loaded after the google captcha script:
<script type="text/javascript" src="https://www.google.com/recaptcha/api/challenge?k=6Ld9GfsSAAAAAAzHv1L48n3s3ceXJ3H9bZ9f24X8"></script>
The above google script require the first block of codes which is the RecaptchaOptions
in order to work properly but since it’s being compressed by Autoptimize then above block of codes is loaded after the google script which is the reason why it cannot render correctly.
How can I exclude that block of codes from being compressed?
Thanks,
Felix