# Forum showing blank page on Desktop due to Cloudflare "optimizations"

**URL:** https://meta.discourse.org/t/forum-showing-blank-page-on-desktop-due-to-cloudflare-optimizations/56031
**Category:** Support
**Created:** [19 בינואר,‏ 2017,‏ 4:21pm UTC](https://meta.discourse.org/t/forum-showing-blank-page-on-desktop-due-to-cloudflare-optimizations/56031 "2017-01-19T16:21:39Z")
**Posts on this page:** 16
**Page:** 1

<div class="post-metadata">

### Author: ![Deukhoofd](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/deukhoofd/32/52342_2.png) [@Deukhoofd](https://meta.discourse.org/u/Deukhoofd)
#### Post date: [19 בינואר,‏ 2017,‏ 4:21pm UTC](https://meta.discourse.org/t/forum-showing-blank-page-on-desktop-due-to-cloudflare-optimizations/56031/1 "2017-01-19T16:21:39Z")

</div>

Ever since this morning my forum has only been showing a blank page on desktops, while being fine on mobile.

On loading the site the console logs the following error:

```plaintext
Uncaught TypeError: Cannot read property 'startRouting' of undefined
    at i.startRouting (_ember_jquery-60dedd1….js:2859)
    at i.didBecomeReady (_ember_jquery-60dedd1….js:3842)
    at invoke (_ember_jquery-60dedd1….js:337)
    at a.flush (_ember_jquery-60dedd1….js:405)
    at u.flush (_ember_jquery-60dedd1….js:529)
    at p.end (_ember_jquery-60dedd1….js:599)
    at _ember_jquery-60dedd1….js:1165

```

So far I’ve tried to restart, rebuild, disable all plugins and rebuild again, revert to stable (instead of beta) and rebuild again, and removing the tmp folder inside of Discourse (as per [Master branch giving blank page for dev - #3 by AhmadF.Cheema](https://meta.discourse.org/t/master-branch-giving-blank-page-for-dev/51459/3)), and then rebuild again.

None of this seems to have helped however.

---

<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: [19 בינואר,‏ 2017,‏ 4:33pm UTC](https://meta.discourse.org/t/forum-showing-blank-page-on-desktop-due-to-cloudflare-optimizations/56031/2 "2017-01-19T16:33:37Z")

</div>

Are you sure you disabled all third party plugins?

Did you route all content through CloudFlare, which tries to “optimize” your JavaScript? This often breaks Discourse which is a JavaScript app.

---

<div class="post-metadata">

### Author: ![Deukhoofd](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/deukhoofd/32/52342_2.png) [@Deukhoofd](https://meta.discourse.org/u/Deukhoofd)
#### Post date: [19 בינואר,‏ 2017,‏ 4:37pm UTC](https://meta.discourse.org/t/forum-showing-blank-page-on-desktop-due-to-cloudflare-optimizations/56031/3 "2017-01-19T16:37:54Z")

</div>

I am sure I disabled all plugins, save for Docker Manager. I do route it through CloudFlare, and have been for some time. I’ll see about disabling performance optimizing for the forums in CloudFlare.

---

<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: [19 בינואר,‏ 2017,‏ 4:44pm UTC](https://meta.discourse.org/t/forum-showing-blank-page-on-desktop-due-to-cloudflare-optimizations/56031/4 "2017-01-19T16:44:31Z")

</div>

Looks like Cloudflare regressed here again and is actively breaking Discourse.

---

<div class="post-metadata">

### Author: ![Deukhoofd](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/deukhoofd/32/52342_2.png) [@Deukhoofd](https://meta.discourse.org/u/Deukhoofd)
#### Post date: [19 בינואר,‏ 2017,‏ 4:49pm UTC](https://meta.discourse.org/t/forum-showing-blank-page-on-desktop-due-to-cloudflare-optimizations/56031/5 "2017-01-19T16:49:42Z")

</div>

Yep, that solves the issue, particularly this setting:

 ![](https://global.discourse-cdn.com/meta/original/3X/1/2/12df6f98ca0de7acad38a7316559415f90b72d11.png)

Forum started working again after I turned it off and purged the cache.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [19 בינואר,‏ 2017,‏ 6:11pm UTC](https://meta.discourse.org/t/forum-showing-blank-page-on-desktop-due-to-cloudflare-optimizations/56031/6 "2017-01-19T18:11:47Z")

</div>

It is possible that this is a side effect of our Ember upgrade. Maybe Cloudflare has trouble with the new binary format of templates or something along those lines.

Someone should report this again to Cloudflare 🙂

---

<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: [19 בינואר,‏ 2017,‏ 6:31pm UTC](https://meta.discourse.org/t/forum-showing-blank-page-on-desktop-due-to-cloudflare-optimizations/56031/7 "2017-01-19T18:31:17Z")

</div>

I contacted CloudFlare and they responded to me, so hopefully they will get this resolved soon.

---

<div class="post-metadata">

### Author: ![SouperC](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/souperc/32/62875_2.png) [@SouperC](https://meta.discourse.org/u/SouperC)
#### Post date: [20 בינואר,‏ 2017,‏ 1:21am UTC](https://meta.discourse.org/t/forum-showing-blank-page-on-desktop-due-to-cloudflare-optimizations/56031/8 "2017-01-20T01:21:29Z")

</div>

I’ve never had much luck in general with rocketloader on any platforms. Unless one goes to the trouble to excluding specific scripts. Cloudflare is great a great and easy way to do other optimizations (minification, ssl + http2, gzip etc) but rocketloader has caused more headaches for me whether its wordpress, socialengine or something else.

---

<div class="post-metadata">

### Author: ![IcyApril](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/icyapril/32/121267_2.png) [@IcyApril](https://meta.discourse.org/u/IcyApril)
#### Post date: [20 בינואר,‏ 2017,‏ 3:24pm UTC](https://meta.discourse.org/t/forum-showing-blank-page-on-desktop-due-to-cloudflare-optimizations/56031/9 "2017-01-20T15:24:47Z")

</div>

Hi @Deukhoofd; I work for Cloudflare and we’re currently investigating this issue. We’re trying to reproduce your error but we seem to be running into some trouble. Is there any chance you could either send me your site URL or a .har file which reproduces this JS error to junadeATcloudflareDOTcom?

This information will really help us get to the bottom of this.

Thanks

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [20 בינואר,‏ 2017,‏ 3:38pm UTC](https://meta.discourse.org/t/forum-showing-blank-page-on-desktop-due-to-cloudflare-optimizations/56031/10 "2017-01-20T15:38:20Z")

</div>

Hi @IcyApril we had this problem with @CobaltSparkz and @Curtis_Lassam too.

---

<div class="post-metadata">

### Author: ![IcyApril](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/icyapril/32/121267_2.png) [@IcyApril](https://meta.discourse.org/u/IcyApril)
#### Post date: [20 בינואר,‏ 2017,‏ 4:06pm UTC](https://meta.discourse.org/t/forum-showing-blank-page-on-desktop-due-to-cloudflare-optimizations/56031/11 "2017-01-20T16:06:32Z")

</div>

Hi @Falco; we’ve just managed to reproduce this ourselves on Discourse 1.8.0.beta2, our team are now looking into what’s caused this.

---

<div class="post-metadata">

### Author: ![IcyApril](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/icyapril/32/121267_2.png) [@IcyApril](https://meta.discourse.org/u/IcyApril)
#### Post date: [21 בינואר,‏ 2017,‏ 2:07pm UTC](https://meta.discourse.org/t/forum-showing-blank-page-on-desktop-due-to-cloudflare-optimizations/56031/12 "2017-01-21T14:07:18Z")

</div>

We’ve been able to identify the bug which came as a result of an edge-case from a recent change. A fix has been found and was deployed early this morning.

I have tested this and the issue appears resolved; however please let me know if you’re still encountering any bugs.

---

<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: [21 בינואר,‏ 2017,‏ 8:41pm UTC](https://meta.discourse.org/t/forum-showing-blank-page-on-desktop-due-to-cloudflare-optimizations/56031/13 "2017-01-21T20:41:13Z")

</div>

Thank you very much for being so responsive 👍

---

<div class="post-metadata">

### Author: ![ashledombos](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ashledombos/32/114818_2.png) [@ashledombos](https://meta.discourse.org/u/ashledombos)
#### Post date: [10 בפברואר,‏ 2017,‏ 11:25pm UTC](https://meta.discourse.org/t/forum-showing-blank-page-on-desktop-due-to-cloudflare-optimizations/56031/14 "2017-02-10T23:25:08Z")

</div>

This bug has been reported recently on my side. @IcyApril did you have positive feedback after your fix?

---

<div class="post-metadata">

### Author: ![markersocial](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/markersocial/32/170136_2.png) [@markersocial](https://meta.discourse.org/u/markersocial)
#### Post date: [24 ביולי,‏ 2020,‏ 10:25am UTC](https://meta.discourse.org/t/forum-showing-blank-page-on-desktop-due-to-cloudflare-optimizations/56031/15 "2020-07-24T10:25:32Z")

</div>

@IcyApril - Just a heads up if you’re still with Cloudflare. Rocket Loader seems to cause this issue for mobile (blank white page), but desktop is fine.

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [8 ביוני,‏ 2024,‏ 12:36pm UTC](https://meta.discourse.org/t/forum-showing-blank-page-on-desktop-due-to-cloudflare-optimizations/56031/16 "2024-06-08T12:36:56Z")

</div>

This topic was automatically closed after 2696 days. New replies are no longer allowed.
