Home › Forums › Quform WordPress › Defer parsing recaptcha javascript… issue on mobile!
- This topic has 8 replies, 2 voices, and was last updated 7 years, 11 months ago by
petefromhome.
- AuthorPosts
- September 30, 2017 at 10:37 pm #22469
petefromhome
ParticipantHey 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” 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.October 1, 2017 at 5:21 pm #22474petefromhome
ParticipantHey 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
October 4, 2017 at 4:38 pm #22507Ally
Support StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
October 5, 2017 at 1:14 pm #22526petefromhome
ParticipantHi 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
October 5, 2017 at 1:17 pm #22528Ally
Support StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
October 5, 2017 at 4:29 pm #22534petefromhome
ParticipantHi 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
October 5, 2017 at 11:57 pm #22535petefromhome
ParticipantHi 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
October 6, 2017 at 12:01 am #22536petefromhome
ParticipantGtmetrix screenshot…
Attachments:
You must be logged in to view attached files.October 6, 2017 at 8:47 am #22540petefromhome
ParticipantHi 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
- AuthorPosts
- You must be logged in to reply to this topic.