Beacon inserted in footer slowing down site
-
Good afternoon,
Since installing the Beacon on our webstore the speed has gone down drastically. Is it correct we still need to add code to the footer script to make the beacon visible?
What does the plugin do? Is it correct we need both the plugin and the manual code?
Also Google Page Speed mentions we should not use document.write(). It says that external scripts that are dynamically injected through ‘document.write()’ can cause huge delays in site loading speed.
We inserted the following script through our Genesis framework.
Footer Scripts
This code will output immediately before the closing </body> tag in the document source.<script type=”text/javascript”>!function(e,t,n){function a(){var e=t.getElementsByTagName(“script”)[0],n=t.createElement(“script”);n.type=”text/javascript”,n.async=!0,n.src=”https://beacon-v2.helpscout.net”,e.parentNode.insertBefore(n,e)}if(e.Beacon=n=function(t,n,a){e.Beacon.readyQueue.push({method:t,options:n,data:a})},n.readyQueue=[],”complete”===t.readyState)return a();e.attachEvent?e.attachEvent(“onload”,a):e.addEventListener(“load”,a,!1)}(window,document,window.Beacon||function(){});</script>
<script type=”text/javascript”>window.Beacon(‘init’, ‘bab065bb-32ef-4ca6-9a70-ed9f1884fbc6’)</script>Looking forward to your reply.
The page I need help with: [log in to see the link]
- The topic ‘Beacon inserted in footer slowing down site’ is closed to new replies.