Nextcloud version (eg, 24.0.6): replace me
Operating system and version (eg, Fedora 36): replace me
Apache or nginx version (eg, Apache 2.4.25): replace me
PHP version (eg, 7.4): replace me
The issue you are facing: The nextcloud website running very slow
Is this the first time you’ve seen this error? (Y/N): Y
every page I hit, it’s loading so slow. could someone please explain why it happens and how to fix it?
Maybe also for an experiment try to temporarily disable the collabora CODE and see if it makes a difference, this app has shown to cause performance problems on other instances
I don’t think it is a problem (tried to disable office, same issue).
In my opinion those two js files are causing the issue. You can try to reproduce the same slowness if you switch the browser into throttling mode. See screen bellow:
I don’t have dashboard enabled, so not exactly the same.
Reloading “Files” app loads the core-common.js as well but in may case it is cached (like everything else). I don’t see any difference for 3G/4G throttling (I think because of caching).
Ok. I think I have found the root of the problem. And it is not related to the server at all. I am using LibreWolf as my browser. So because it has very strict security policy and low memory usage, it does not cache files larger than 50kb.
I went to its settings about:config and filtered variables browser.cache and found it out.
After I changed those settings, those LARGE js files started being cached, and the web site works smoothly now.