Parker Software Ltd Homepage
Forum Home Forum Home > WhosOn Live Chat > FAQ's
  New Posts New Posts RSS Feed - chat not working in Chrome and Firefox
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

chat not working in Chrome and Firefox

 Post Reply Post Reply
Author
Message
damian View Drop Down
New User
New User


Joined: 13 Sep 2018
Location: manchester
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote damian Quote  Post ReplyReply Direct Link To This Post Topic: chat not working in Chrome and Firefox
    Posted: 13 Sep 2018 at 4:05am
Whos On has suddenly stopped working in Chrome and Firefox, but still works in IE11 and Edge.

When I look at the console in Chrome, I see the following error:
GET https://www.example.com/chat/include.js?domain=www.example.com net::ERR_CONTENT_DECODING_FAILED 200 (OK)

Firefox gives me this error:
Loading failed for the <script> with source "https://www.example.com/chat/include.js?domain=www.example.com"

My embed code is as follows:
<li style="display:none" id="whoson_chat_wrapper">
<!-- Embedded WhosOn: Insert the script below at the point on your page where you want the Click To Chat link to appear -->
<script type="text/javascript" src="https://www.example.com/chat/include.js?domain=www.example.com"></script>
<script>if(typeof sWOTrackPage=="function")sWOTrackPage();</script>
</li>

Both browsers also give me this error:
Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help http://xhr.spec.whatwg.org/

Could this be due to a recent update of Chrome and Firefox which is now blocking the synchronous embeded script?

If this is the case, is there a known fix?

Thanks.
Damian
Back to Top
parkersoft-jim View Drop Down
Admin Group
Admin Group
Avatar

Joined: 11 Nov 2016
Location: Terra
Points: 130
Post Options Post Options   Thanks (0) Thanks(0)   Quote parkersoft-jim Quote  Post ReplyReply Direct Link To This Post Posted: 13 Sep 2018 at 7:48am
I assume you are not actually using example.com as the chat server hostname.

Try taking the tracking code out of the <li> (list) tags as from your excerpt you appear to have it embedded in them. As it is javascript you don't need to put it inside list tags.

To advise better, I will need the URL of one of the webpages where you tracking code is present.


Edited by parkersoft-jim - 13 Sep 2018 at 7:49am
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.05
Copyright ©2001-2016 Web Wiz Ltd.

This page was generated in 0.047 seconds.