element-web: app.element.io fails to load on browser startup
Description
Describe here the problem that you are experiencing, or the feature you are requesting.
Unable to load Element can’t load Something went wrong and element was unable to load

Steps to reproduce
Ensure app.element.io opens by default on launching Firefox (for example, pin the tab, or have it open when closing the browser so it is automatically reloaded on start) - this has happened multiple times, but generally I only see it when firefox has been restarted at the start of a new day. Otherwise loading is perfectly fine
View the page
Describe how what happens differs from what you expected.
I see the screen shot above, not the UI
As an odd side effect, attempting to click on the link does not take me to element.io either.
Logs are hard because this is before any of the JS has loaded, but the console did display:
"09:12:32.596 Loading failed for the <script> with source “https://app.element.io/bundles/504aa24e021ebeda5b73/init.js”. app.element.io:1:1
09:12:32.597 ChunkLoadError: Loading chunk 12 failed. (error: https://app.element.io/bundles/504aa24e021ebeda5b73/init.js) Webpack (6)
e
64
64
a
<anonymous>
<anonymous>
index.ts:213:12 64 index.ts:213
webpack://src/vector/index.ts
Not sure if it’s useful, but when i do refresh the page, it does go and download https://app.element.io/bundles/504aa24e021ebeda5b73/init.js from the webserver, so the bundle version number is right
The network was up by the time i started firefox.
Prepared to believe it’s a firefox bug, but reporting anyway.
Version information
- Platform: web (in-browser)
For the web app:
- Browser: Firefox 83.0 (ad blocker installed, but 0 blocked on the page)
- OS:Ubuntu
- URL: app.element.io
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 18 (8 by maintainers)
Commits related to this issue
- Add RegExp dotAll feature test As mentioned in https://github.com/vector-im/element-web/issues/16020#issuecomment-774384598, we're depending on the `dotAll` / `s` regex feature. This adds a test so b... — committed to element-hq/element-web by jryans 3 years ago
- Add RegExp dotAll feature test As mentioned in https://github.com/vector-im/element-web/issues/16020#issuecomment-774384598, we're depending on the `dotAll` / `s` regex feature. This adds a test so b... — committed to element-hq/element-web by jryans 3 years ago
My wife has the same error as @silasdb on firefox 74 in Linux. It happens every time, with or without cache / private browsing. I haven’t found any work around.
There is also
SyntaxError: invalid regular expression flag swhich is a feature added in Firefox 78; for for the two of us at least the problem is using an unsupported browser. The error message could be much better.Hi. Since last update I’m having the same issue. Console gives me slight different error though:
Strangely, I can open the js file if I copy the URL and paste it in the address bar.
I tried to clean all caches and cookies and even tried to open a different browser profile, with no success.
Using Firefox 66.0.1 (64-bit) (maybe too old?) in NetBSD 8.0.
Sure, I’d be happy to accept a PR that clarifies this text to add that refreshing might help.
@jryans i’ve noticed it in the last … couple of weeks there’s maybe been three examples? It’s new, but that could also be new-firefox-new
Maybe one suggestion in the short term is a bit of TLC for this page, possibly with the simple suggestion of adding “Try refreshing this page” as the explicit action that will probably fix this sort of thing?
@michaelkaye Is this a new issue, or has it been like this for a long time?
At first glance, it seems like it may be hard to fix this, as we rely on the browser to load the various scripts, and can’t do much if they fail…