# Site fails to load with js errors

**URL:** https://meta.discourse.org/t/site-fails-to-load-with-js-errors/82789
**Category:** Support
**Created:** [March 12, 2018, 11:32am UTC](https://meta.discourse.org/t/site-fails-to-load-with-js-errors/82789 "2018-03-12T11:32:18Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![carlokok](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/carlokok/32/115951_2.png) [@carlokok](https://meta.discourse.org/u/carlokok)
#### Post date: [March 12, 2018, 11:32am UTC](https://meta.discourse.org/t/site-fails-to-load-with-js-errors/82789/1 "2018-03-12T11:32:18Z")

</div>

Our site ([https://talk.remobjects.com/](https://talk.remobjects.com/)) started failing to load with the last few updates:

```plaintext
Laden voor het &lt;script&gt; met bron ‘https://talk.remobjects.com/assets/ember_jquery-27e777857b8c0730dacfe09cb11711365d21a5db4f9ee0b85d494e4259cf6cda.js’ is mislukt. [talk.remobjects.com:34](https://talk.remobjects.com/)

ReferenceError: define is not defined[Meer info] [_preload-store-ec90ffab9d7a6d9e507dda7cf7343e9d50b8bce624f7f44486ac8fd6b9814309.js:1](https://talk.remobjects.com/assets/_preload-store-ec90ffab9d7a6d9e507dda7cf7343e9d50b8bce624f7f44486ac8fd6b9814309.js)

Laden voor het &lt;script&gt; met bron ‘https://talk.remobjects.com/assets/vendor-20c2f328b5abb11fe184c1b75687e13d2b1ecc3ef8c7a3340da616da2acb03bb.js’ is mislukt. [talk.remobjects.com:38](https://talk.remobjects.com/)

ReferenceError: define is not defined[Meer info] [_pretty-text-bundle-d8a2e94eb658e9772d1ffdfcc0c3c5d31eba61f2c36e5f86a0d59f2d76e795ba.js:1](https://talk.remobjects.com/assets/_pretty-text-bundle-d8a2e94eb658e9772d1ffdfcc0c3c5d31eba61f2c36e5f86a0d59f2d76e795ba.js)

ReferenceError: define is not defined[Meer info] [application-faebd89d087a88aed7d48f6dd6c16a4721027e95b7da1fc6db583719d0ada076.js:1:1](https://talk.remobjects.com/assets/application-faebd89d087a88aed7d48f6dd6c16a4721027e95b7da1fc6db583719d0ada076.js)

ReferenceError: Ember is not defined[Meer info] [plugin-ece81ae2de07f89c2a2358bde79f6a75a400c536bb254955ee48ee6a2c35860c.js:1:1](https://talk.remobjects.com/assets/plugin-ece81ae2de07f89c2a2358bde79f6a75a400c536bb254955ee48ee6a2c35860c.js)

ReferenceError: define is not defined[Meer info] [_plugin-third-party-95176350723c7352bf3851c4a776723ad45db51c33dd061787efcc6dc0177e89.js:1](https://talk.remobjects.com/assets/_plugin-third-party-95176350723c7352bf3851c4a776723ad45db51c33dd061787efcc6dc0177e89.js)

ReferenceError: define is not defined[Meer info] [_admin-df2063af5c4693fff66917c700756e4fd7644887948651199a4c0398445a012b.js:1](https://talk.remobjects.com/assets/_admin-df2063af5c4693fff66917c700756e4fd7644887948651199a4c0398445a012b.js)

ReferenceError: require is not defined[Meer info] [talk.remobjects.com:435:13](https://talk.remobjects.com/)

ReferenceError: Ember is not defined[Meer info] [talk.remobjects.com:452:3](https://talk.remobjects.com/)

ReferenceError: require is not defined[Meer info]

```

Tried updating again but that didn’t make any real difference. What else can I try?

The site itself does function fine in already opened tabs.

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [March 12, 2018, 12:07pm UTC](https://meta.discourse.org/t/site-fails-to-load-with-js-errors/82789/2 "2018-03-12T12:07:44Z")

</div>

Try [safe mode](https://meta.discourse.org/t/53504?silent=true):

> [@Using Safe Mode to troubleshoot issues with themes and plugins](https://meta.discourse.org/t/how-to-use-discourse-safe-mode/53504):
>
> bookmark This guide explains how to use Discourse’s [Safe Mode](https://meta.discourse.org/t/53504?silent=true) to troubleshoot issues with themes and plugins. person_raising_hand Required user level: All users Discourse offers a “JavaScript [Safe Mode](https://meta.discourse.org/t/53504?silent=true)” that allows any user to isolate the root cause of JavaScript issues caused by plugins, themes, or theme components. This feature is particularly useful for troubleshooting problems on your Discourse site. Accessing [Safe Mode](https://meta.discourse.org/t/53504?silent=true) To access [Safe Mode](https://meta.discourse.org/t/53504?silent=true), follow these steps: Open a new browse…

If that works, then the problem is being caused by one of your themes or plugins

---

<div class="post-metadata">

### Author: ![carlokok](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/carlokok/32/115951_2.png) [@carlokok](https://meta.discourse.org/u/carlokok)
#### Post date: [March 12, 2018, 12:13pm UTC](https://meta.discourse.org/t/site-fails-to-load-with-js-errors/82789/3 "2018-03-12T12:13:34Z")

</div>

Thanks; that gives the exact same result:

> **[RemObjects Talk](https://talk.remobjects.com/?safe_mode=no_custom%2Cno_plugins%2Conly_official)**
>
> RemObjects Forum

 ![afbeelding](https://global.discourse-cdn.com/meta/original/3X/d/d/dda99a193208f79a313a20aa5cdde781e7f34a5a.png)

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [March 12, 2018, 12:16pm UTC](https://meta.discourse.org/t/site-fails-to-load-with-js-errors/82789/4 "2018-03-12T12:16:07Z")

</div>

I think the next thing to try would be a command-line rebuild, assuming you have a standard self-hosted installation.

> [@Manually update Discourse and Docker image to latest](https://meta.discourse.org/t/how-do-i-manually-update-discourse-and-docker-image-to-latest/23325):
>
> bookmark This guide provides step-by-step instructions for manually updating Discourse, the Docker container, and the Ubuntu operating system on a self-hosted setup. person_raising_hand Required user level: System Administrator warning SSH access to the server. If you self-host Discourse, you occasionally need to run a manual update via the command line to get the latest security releases and newest libraries. These updates are not picked up in admin/upgrade, which is why you’ll occa…

---

<div class="post-metadata">

### Author: ![Johani](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/johani/32/176920_2.png) [@Johani](https://meta.discourse.org/u/Johani)
#### Post date: [March 12, 2018, 12:21pm UTC](https://meta.discourse.org/t/site-fails-to-load-with-js-errors/82789/5 "2018-03-12T12:21:28Z")

</div>

I’m seeing this in Chrome:

![image](https://global.discourse-cdn.com/meta/original/3X/0/9/098e449867afd0c089b992010894431b6e798e98.png)

I remember reading that SPDY errors have something to do with SSL / https or things along that nature, I could be wrong though.

---

<div class="post-metadata">

### Author: ![carlokok](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/carlokok/32/115951_2.png) [@carlokok](https://meta.discourse.org/u/carlokok)
#### Post date: [March 12, 2018, 12:35pm UTC](https://meta.discourse.org/t/site-fails-to-load-with-js-errors/82789/6 "2018-03-12T12:35:35Z")

</div>

Thanks! Chrome gave a better hint there (the weird thign was, if you load those urls manually they’re fine, if you let the browser load them, it doesn’t work). turns out my disk was full for the outside nginx; a cleanup made it work.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [March 13, 2018, 2:55am UTC](https://meta.discourse.org/t/site-fails-to-load-with-js-errors/82789/7 "2018-03-13T02:55:42Z")

</div>


