# Issue with Custom CSS in Theme Editor Not Loading

**URL:** https://meta.discourse.org/t/issue-with-custom-css-in-theme-editor-not-loading/317435
**Category:** Bug
**Tags:** needs-repro
**Created:** [July 21, 2024, 10:18am UTC](https://meta.discourse.org/t/issue-with-custom-css-in-theme-editor-not-loading/317435 "2024-07-21T10:18:57Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![CAKE\_NICE](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cake_nice/32/400517_2.png) [@CAKE\_NICE](https://meta.discourse.org/u/CAKE_NICE)
#### Post date: [July 21, 2024, 10:18am UTC](https://meta.discourse.org/t/issue-with-custom-css-in-theme-editor-not-loading/317435/1 "2024-07-21T10:18:57Z")

</div>

Hi everyone,

I’m encountering an issue with the theme editor on my Discourse site. When I try to edit the custom CSS/HTML under the “CSS” tab, the loading indicator keeps spinning, and the editor never loads. I have attached a screenshot to illustrate the problem.

Here is what I’ve tried so far:

1. Cleared my browser cache.
2. Disabled all non-official plugins.
3. Used different browsers and devices.
4. Verified that my admin account has the necessary permissions.

Despite these efforts, the issue persists. Has anyone else encountered this problem or have any suggestions on how to resolve it?

Thank you in adv

 ![image](https://global.discourse-cdn.com/meta/original/4X/f/2/0/f20abc664b48e4b6a4cffbd21c24b1b6721194f0.png)

---

<div class="post-metadata">

### Author: ![Firepup650](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/firepup650/32/465200_2.png) [@Firepup650](https://meta.discourse.org/u/Firepup650)
#### Post date: [July 21, 2024, 10:20am UTC](https://meta.discourse.org/t/issue-with-custom-css-in-theme-editor-not-loading/317435/2 "2024-07-21T10:20:59Z")

</div>

Does the issue persist in [safe mode](https://meta.discourse.org/t/53504?silent=true)?

---

<div class="post-metadata">

### Author: ![CAKE\_NICE](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cake_nice/32/400517_2.png) [@CAKE\_NICE](https://meta.discourse.org/u/CAKE_NICE)
#### Post date: [July 21, 2024, 10:23am UTC](https://meta.discourse.org/t/issue-with-custom-css-in-theme-editor-not-loading/317435/3 "2024-07-21T10:23:31Z")

</div>

Yes, it still exists in the [safe mode](https://meta.discourse.org/t/53504?silent=true). It seems to be a problem that occurred after the Discourse update yesterday.

I remember that update had 218 commits.

---

<div class="post-metadata">

### Author: ![CAKE\_NICE](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cake_nice/32/400517_2.png) [@CAKE\_NICE](https://meta.discourse.org/u/CAKE_NICE)
#### Post date: [July 21, 2024, 10:35am UTC](https://meta.discourse.org/t/issue-with-custom-css-in-theme-editor-not-loading/317435/4 "2024-07-21T10:35:33Z")

</div>

![image](https://global.discourse-cdn.com/meta/original/4X/2/4/1/2413efca8e9b334f454b628719ed71c691e338a3.png)

Hi everyone,

I’m encountering an issue where the `ace.js` file fails to load, even when running Discourse in [safe mode](https://meta.discourse.org/t/53504?silent=true). This issue prevents the theme editor from functioning properly. I’ve attached a screenshot showing the failed request.

Here is what I’ve tried so far:

1. Cleared browser cache and cookies.
2. Attempted to access the site using different browsers.
3. Checked server logs but found no clear indication of the issue.
4. Verified file permissions and paths on the server.
5. Rebuilt the app using `./launcher rebuild app`.
6. Ensured all Discourse and plugin updates are installed.

Despite these efforts, the problem persists. Has anyone else encountered this issue or have any suggestions on how to resolve it?

Thank you in advance for your help!

---

<div class="post-metadata">

### Author: ![pmusaraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmusaraj/32/119489_2.png) [@pmusaraj](https://meta.discourse.org/u/pmusaraj)
#### Post date: [July 22, 2024, 9:43pm UTC](https://meta.discourse.org/t/issue-with-custom-css-in-theme-editor-not-loading/317435/5 "2024-07-22T21:43:59Z")

</div>

Do you see any errors in the browser’s javascript console?

Also, is this happening on every theme (or theme component) or only this specific one?

---

<div class="post-metadata">

### Author: ![CAKE\_NICE](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cake_nice/32/400517_2.png) [@CAKE\_NICE](https://meta.discourse.org/u/CAKE_NICE)
#### Post date: [July 25, 2024, 12:15am UTC](https://meta.discourse.org/t/issue-with-custom-css-in-theme-editor-not-loading/317435/7 "2024-07-25T00:15:58Z")

</div>

I seem to have found an error; Ace.js is incompatible with the Air theme.

---

<div class="post-metadata">

### Author: ![pmusaraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmusaraj/32/119489_2.png) [@pmusaraj](https://meta.discourse.org/u/pmusaraj)
#### Post date: [July 25, 2024, 4:07pm UTC](https://meta.discourse.org/t/issue-with-custom-css-in-theme-editor-not-loading/317435/8 "2024-07-25T16:07:57Z")

</div>

I can’t reproduce the issue locally with the Air theme. Ace.js loads fine on all the tabs of that theme.

---

<div class="post-metadata">

### Author: ![Lhc\_fl](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lhc_fl/32/268115_2.png) [@Lhc\_fl](https://meta.discourse.org/u/Lhc_fl)
#### Post date: [July 26, 2024, 10:13am UTC](https://meta.discourse.org/t/issue-with-custom-css-in-theme-editor-not-loading/317435/9 "2024-07-26T10:13:00Z")

</div>

Just curious, could it be an issue with Ad Blocker or the Chinese Great Firewall?

---

<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: [July 26, 2024, 10:19am UTC](https://meta.discourse.org/t/issue-with-custom-css-in-theme-editor-not-loading/317435/10 "2024-07-26T10:19:14Z")

</div>

> [@CAKE\_NICE](#):
>
> ![image](https://global.discourse-cdn.com/meta/original/4X/2/4/1/2413efca8e9b334f454b628719ed71c691e338a3.png)

The current version of Discourse will not load a file called `ace.js`. Instead, it should be named something like this:

 ![SCR-20240726-kgnz](https://global.discourse-cdn.com/meta/original/4X/3/1/e/31e1f13174b8fba14816398615497b5bd8959e5f.png)

So it seems like something went wrong with your update. Are you sure that the `./launcher rebuild app` completed successfully?

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [September 24, 2024, 10:19am UTC](https://meta.discourse.org/t/issue-with-custom-css-in-theme-editor-not-loading/317435/11 "2024-09-24T10:19:32Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
