# JavaScript Error on script load - LightJSExclude

**URL:** <https://community.shopify.com/t/javascript-error-on-script-load-lightjsexclude/133079>\
**Category:** Technical Q&A\
**Created:** [July 5, 2022, 11:54pm UTC](https://community.shopify.com/t/javascript-error-on-script-load-lightjsexclude/133079 "2022-07-05T23:54:37Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Michael\_Marsell](https://avatars.discourse-cdn.com/v4/letter/m/ba8739/32.png) [@Michael\_Marsell](https://community.shopify.com/u/Michael_Marsell)\
**Post date:** [July 5, 2022, 11:54pm UTC](https://community.shopify.com/t/javascript-error-on-script-load-lightjsexclude/133079/1 "2022-07-05T23:54:37Z")

</div>

Hi there,

A client of ours ([empireskateshop.myshopify.com](http://empireskateshop.myshopify.com)) has noticed that our widget no longer loads on their website.

There is a console error showing that the function lightJsExclude is undefined. This looks like an error on Shopify’s side. I’ve submitted a support ticket, but they directed me here instead.

It looks like this gets added when an app using lightJS is installed so that the type can be set correctly. Our widget does not use lightJS, but is affected as all third-party scripts are prevented from loading.

Short of installing each app that our client uses and seeing which one triggers this change, I don’t know if this can be fixed.

Has anyone come across this before and/or found a way around this?

 ![Michael_Marsell_0-1657064801846.png](https://canada1.discourse-cdn.com/shopifyforum/original/3X/4/b/4beb7c963dc2e7d0668ef00ee2952d5dfab75a7d.png)

![Screenshot 2022-07-06 114921.jpg](https://canada1.discourse-cdn.com/shopifyforum/optimized/3X/7/4/7430d441f1f4b5f58202162dcba2bc9e3d47acf9_2_690x31.jpeg)

---

_[View the full topic](https://community.shopify.com/t/javascript-error-on-script-load-lightjsexclude/133079)._
