WebSite X5Help Center

 
Giulio V.
Giulio V.
User

Code Placement  en

Auteur : Giulio V.
Visité 248, Followers 3, Partagé 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...

Posté le
2 RéPONSES
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator

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

.

Lire plus
Posté le de  ‪ KolAsim ‪ ‪