This is something I’ve been trying to fix for months now (it’s not a critical thing, but still annoying). Googling has left me empty handed.
The gist of the problem is this:
- Open up Chromium window in Incognito mode with the URL of the local app
- Do some dev work, Ctrl+Refresh/refresh with cache disabled
- The Browser stops loading the javascript files after a bit, and freezes
This freeze entails every tab in the window. If it happens in a non-incognito Window, it freezes as well. The way it freezes is that, while the requests all return 200, the “Time” column in Chrome Network tab remains pending forever. The window cannot be closed unless the tab is directly closed. Of course there has been entire days where this didn’t happen once, and days where it happens all the time. Sometimes it survives 2 reloads, for example.
The related fact is that the index.html is absolutely huge. It includes a lot of javascript files, and I assume that is what’s causing it to freeze on Chromium-based browsers (doesn’t happen on Firefox, ever). Completely revamping the index.html file because of the above issue would take a lot of work, so I’m asking if there’s a workaround of any kind. Running an uglifier on the js files makes Chrome work flawlessly, but then I am unable to really use the Developer tools properly. So this is what makes me think the problem is the amount of files (there’s around 1.2k tags in there)
The network tab in the tab that freezes looks like this. A whole bunch of 200 requests. Then at some point, they just lose their size and the request is stuck on pending:
I’m not sure what other information I could give at this point. The backend obviously sends the files properly, the frontend obviously requests the files properly (as illustrated by Firefox running well). So by process of elimination I’m stuck with blaming Chrome, but unable to find a fix.
I’ve tried Chromium, Google Chrome, Microsoft Edge, Brave Browser, Opera. All had this exact same issue.
So to summarize my question: can I make Chrome somehow load all those files? Is there an extra cache I could turn off (since new Incognito tabs open as they should)? Is there a file limite option I could raise?