Code Placement
Author: Giulio V.
Visited 324,
Followers 3,
Shared 0
I have a Chat set up on my website and when running tests, Google suggests I need to work on this because it says "Reduce the impact of third-party code Third-party code blocked the main thread for 680 ms"
This is the Chat code I have placed in the Before Closing the BODY Tag.
<!--Add the following script at the bottom of the web page (immediately before the </body> tag)--> <script type="text/javascript" async="async" defer="defer" data-cfasync="false" src="https://mylivechat.com/chatinline.aspx?hccid=43767216"></script>
Which would be the best place to put the chat code that will eliminate this issue?
- This is what is confusing to me. Add the following script at the bottom of the web page(immediately before the </body> tag)
Thank You All...
Posted on the
Hello Giulio,
Here some links about your error and how to
https://nitropack.io/blog/post/reduce-the-impact-of-third-party-code
https://pagespeedplus.com/blog/reduce-impact-third-party-code
others are available via Google.
Hope this helps
Axel
x Giulio V. ... (It > En) ... ... 680 Ms are insignificant, just over half a second; ...they are warnings that are a waste of time...
... to have the chat on all the pages of the site it is ok to paste your code here:
>> Step 1 - Settings > Statistics and Code > Options in the Code section >
▪Custom Code: > 6^ option > Before closing the BODY tag.
... to have the chat on a single page of the site it is ok to paste your code here:
>> Step 3 - Map > The 'Page Properties' window > Options in the Expert section >
▪Custom Code: > 6^ option > Before closing the BODY tag.
...
... ... the chat starts quickly, just try it and you'll see for yourself...
...
ciao
.