Web Form Builder and Avoid...

User 2777668 Photo


Registered User
4 posts

Hello,

We are making changes to our site to meet the new Core Vitals and one issue PageSpeed Insights suggest we fix is to (document.write()). We have a form on almost all pages built by Web Form Builder which uses document.write(). Has anyone address this? Is there another way?

Thanks in advance.
User 187934 Photo


Senior Advisor
19,665 posts

Hi Michael,
Remove the script wrapping the iframe code.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2777668 Photo


Registered User
4 posts

That did not work. From will not show

<script type="text/javascript">
document.write(unescape("%3Ciframe id=\"fb_iframe\" src=\"Large%2520Order%2520Quote.php" + window.location.search + "\" width=\"100%\" height=\"1789\"allowtransparency=\"true\" scrolling=\"no\" frameborder=\"0\"%3E<a href=\"Large%2520Order%2520Quote.php\" title=\"Large%2520Order%2520Quote\">Check out my CoffeeCup Form</a>%3C/iframe%3E"));

</script>
<noscript>
<iframe height="1789" style="border:none; background:transparent; overflow:hidden; width:100%;" id="fb_iframe" src="Large%20Order%20Quote/Large%20Order%20Quote.html"> <a href="Large%20Order%20Quote.php" title="Large%20Order%20Quote">Check out my CoffeeCup Form</a> </iframe>
</noscript>
User 187934 Photo


Senior Advisor
19,665 posts

The code you posted still has the scripted around it. Also don't use spaces with the form name. Some servers get confused.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2777668 Photo


Registered User
4 posts

Yes when removed as below it does not render


document.write(unescape("%3Ciframe id=\"fb_iframe\" src=\"Large%2520Order%2520Quote.php" + window.location.search + "\" width=\"100%\" height=\"1789\"allowtransparency=\"true\" scrolling=\"no\" frameborder=\"0\"%3E<a href=\"Large%2520Order%2520Quote.php\" title=\"Large%2520Order%2520Quote\">Check out my CoffeeCup Form</a>%3C/iframe%3E"));

<noscript>
<iframe height="1789" style="border:none; background:transparent; overflow:hidden; width:100%;" id="fb_iframe" src="Large%20Order%20Quote/Large%20Order%20Quote.html"> <a href="Large%20Order%20Quote.php" title="Large%20Order%20Quote">Check out my CoffeeCup Form</a> </iframe>
</noscript>
User 187934 Photo


Senior Advisor
19,665 posts

This is with all of the script removed.
<iframe height="1789" style="border:none; background:transparent; overflow:hidden; width:100%;" id="fb_iframe" src="Large%20Order%20Quote/Large%20Order%20Quote.html"></iframe>
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2777668 Photo


Registered User
4 posts

Thank you:)

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.