# Javascript chat not loading

**URL:** <https://community.hubspot.com/t/javascript-chat-not-loading/21976>\
**Category:** APIs & Integrations\
**Created:** [June 23, 2020, 11:55am UTC](https://community.hubspot.com/t/javascript-chat-not-loading/21976 "2020-06-23T11:55:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pbeville](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/pbeville/32/84083_2.png) [@pbeville](https://community.hubspot.com/u/pbeville)\
**Post date:** [June 23, 2020, 11:55am UTC](https://community.hubspot.com/t/javascript-chat-not-loading/21976/1 "2020-06-23T11:55:59Z")

</div>

I get this error in my Safari Web Inspector when trying to use the javascript chat link, [Error] Not allowed to load local resource: file://js.hs-scripts.com/7964333.js

For some reason the browser doesn’t recognise the link as a URL. Has anyone else has this problem, can anyone assist?

The code is per the instructions:

\<!-- Start of HubSpot Embed Code --\>  
\<script type=“text/javascript” id=“hs-script-loader” async defer src=“[//js.hs-scripts.com/7964333.js](https://js.hs-scripts.com/7964333.js)”\>\</script\>  
\<!-- End of HubSpot Embed Code --\>

---

<div class="post-metadata">

**Author:** ![WendyGoh](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/wendygoh/32/42320_2.png) [@WendyGoh](https://community.hubspot.com/u/WendyGoh)\
**Post date:** [June 24, 2020, 4:24am UTC](https://community.hubspot.com/t/javascript-chat-not-loading/21976/2 "2020-06-24T04:24:38Z")

</div>

Hey @pbeville,

In order for me to further understand the environment, could you share with me the following:

1. The page url in question

2. What’s the website builder that your team is using? i.e. _Wordpress, Drupal_

3. Does the error show up on other browser? Or only specifically Safari?

---

<div class="post-metadata">

**Author:** ![pbeville](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/pbeville/32/84083_2.png) [@pbeville](https://community.hubspot.com/u/pbeville)\
**Post date:** [June 24, 2020, 1:52pm UTC](https://community.hubspot.com/t/javascript-chat-not-loading/21976/3 "2020-06-24T13:52:29Z")

</div>

Thanks for getting back to me. The issue was that I was trying to run it from my dev laptop, as soon as I uploaded it to the web server it worked. Obvious in hindsight but there you go!

---

<div class="post-metadata">

**Author:** ![KMARTIN6](https://avatars.discourse-cdn.com/v4/letter/k/f19dbf/32.png) [@KMARTIN6](https://community.hubspot.com/u/KMARTIN6)\
**Post date:** [August 22, 2022, 9:49pm UTC](https://community.hubspot.com/t/javascript-chat-not-loading/21976/4 "2022-08-22T21:49:36Z")

</div>

daddy

ehh \*\*bleep\*\* me
