Defer parsing recaptcha javascript… issue on mobile!

Home Forums Quform WordPress Defer parsing recaptcha javascript… issue on mobile!

This topic is: resolved
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #22469
    petefromhome
    Participant

    Hey Guys,

    I have been trying to optimise one of my sites for speed, and I have a Quform on the home page….

    I have found this script below to defer parsing the recaptcha javascript on the site.

    <script src=”https://www.google.com/recaptcha/api.js&#8221; async defer></script>

    I have added this code to the Custom JavaScript section of Quform and it does the trick but breaks the bottom of the form on mobile and the recaptcha box disappears ( desktop version is fine )

    I have attached two screenshots before and after adding the script…

    Any idea how to fix this?

    Looking forward to hearing from you!

    Cheers, Pete

    Attachments:
    You must be logged in to view attached files.
    #22474
    petefromhome
    Participant

    Hey Guys!

    Just a quick one in regards to my previous message…

    Now I have the same issue on desktop in all browsers.

    Just cleared the cache and picked up on it.

    It does the same thing just like on my phone…

    Hope there is an easy fix for this.

    Cheers, Pete

    #22507
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    #22526
    petefromhome
    Participant

    Hi Ally,

    Although the code above did not break the form, it also did not make any difference.

    When I add MY code to the Custom JavaScript box, it does the trick but breaks the form…

    Do you have any other advice or solution for this issue?

    Appreciate your help!

    Cheers, Pete

    #22528
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    #22534
    petefromhome
    Participant

    Hi Ally,

    I have just set you up as admin on the site.

    You should have received an email with the logins.

    Please check GTmetrix after you have done your tweaks to see if the Defer parsing of JavaScript error still comes up.

    Cheers, Pete

    #22535
    petefromhome
    Participant

    Hi Ally,

    I have been playing with the forms on the site and also installed w3 total cache plugin.

    ****Please DO NOT disable any plugins as they are all fine tuned!

    When I add the “captcha” function to the form “home popup”, I am not getting the defer parsing error on GTmetrix.

    Once I switch to recaptcha (preferred option), that is when my score drops and I get the defer parsing error.

    I have tried to add the recaptcha javascript url to w3 total cache to minify, but the recaptcha box disappears just like when I add the script to the custom js section in the quform settings.

    I hope there is a solution…

    Looking forward to hearing from you.

    Cheers, Pete

    #22536
    petefromhome
    Participant

    Gtmetrix screenshot…

    Attachments:
    You must be logged in to view attached files.
    #22540
    petefromhome
    Participant

    Hi Ally,

    Please close this thread as I no need further assistance!

    I have decided to use captcha instead of recaptcha on the home page and that solves my problem!

    I have removed the WP admin account I created for you guys.

    Thanks a million for your time and help!

    Cheers, Pete

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.
Be inspired. © 2025 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy