Viewing 7 replies - 16 through 22 (of 22 total)
  • Plugin Author Frank Goossens

    (@futtta)

    hmm, it looks like the recaptcha isn’t even displaying with AO disabled? or are these my noscript/ublock rules interfering?

    I think this might be on your side (noscript). I have disabled ReCaptcha from the contact form now as I don’t seem to be able to resolve the issue that it is constantly visible across all browsers.
    Including the contactform.js also did not resolve the issue.
    I haven’t gotten around to delete autooptimize and all of its contents and then reinstall it.

    Plugin Author Frank Goossens

    (@futtta)

    just reinstalling will make no difference I’m afraid …

    When loading the contact-page, do you see any JS errors on your browser’s console? can you copy/ paste those here, if so?

    If we can’t find the right JS to exclude, you could also exclude the entire contact-us page from being optimized using this code snippet;

    add_filter('autoptimize_filter_noptimize','contact_noptimize',10,0);
    function contact_noptimize() {
    	if (strpos($_SERVER['REQUEST_URI'],'contact-us')!==false) {
    		return true;
    	} else {
    		return false;
    	}
    }

    frank

    the console doesn’t show any error message. Adding the code snippet with the codesnippet plugin also does not solve issue. I guess i will have to make a compromise

    • This reply was modified 8 years, 4 months ago by andreas_heck.
    • This reply was modified 8 years, 4 months ago by andreas_heck.
    Plugin Author Frank Goossens

    (@futtta)

    Adding the code snippet with the codesnippet plugin also does not solve issue.

    that is _very_ weird, as the snippet stops AO from working on your contact-us page entirely (you can see by viewing the source of your HTML, which has no autoptimzed CSS/ JS any more), so this would confirm this is not an AO-problem to being with?

    Moving the recaptcha/api.js from the footer.php to header.php solved the issue and it is now displaying properly. Thanks for your quick replies! 5 star plugin and great support.

    Thanks so much!!! excellent support.
    ??

Viewing 7 replies - 16 through 22 (of 22 total)
  • The topic ‘ReCaptcha only loads sometimes when Autoptimize is enabled’ is closed to new replies.