First off thanks for how amazing Discourse is and we love it since migrated from bbPress plugin (migration wasn’t smooth but thats for another topic).
One of the users in my discourse site noticed that when trying to select a different theme under his profile it was displaying broken (screenshots attached). However I could not reproduce the broken template scenario as they were loading fine on my side as admin.
But the intriguing part is that I thought our community was somewhat heavy in traffic/users (49k posts 7.3k users) that the VPS (2GB ram + 2GB Swap and 1 CPU) could not handle it and somehow we had a bottleneck that was causing the site to be loading very slow (some pages taking from 3-10 seconds to load showing the spinner).
I have been using Grey Amber as default and had Dark and Light by default as being able to be selected by users.
So I decided to disable the Dark and Light themes for users and all of the sudden the site became snappier and almost as fast as Meta.discourse!!! Now webpagetest.org and other page test sites display insane fast times with some even under a second. Even backend pages like sidekiq, logs, upgrade, etc. were really slow loading before this, now is like almost instant.
I have not tried yet, but I wonder if upgrades might even work now through the UI as they were hanging/cancelling or throwing errors, etc. OMG wow, even the upgrade by interface works now… I have been having to do it through the terminal and having the site down for like 20-30 mins, I guess no more!
Is this a normal behavior that disabling or putting themes to inactive you get a boost in performance? My guess is no, but is what I encountered so far even after rebuilding the app several times.
Running: v2.4.0.beta1 +
135 157 (upgraded as typing this just to test if it work through the interface and it did, amazing)
Header Links Theme Component (site was slow before adding this also)
The DNS is Cloudflare but I know better to have disabled all the optimizations/cache and brotli, etc. It is very fast now and no problems under same Cloudflare settings, only thing that change was disabling the themes.
I apologize if is a long post, just trying to provide as much info in case it helps anyone or for debugging.
The user took screenshots that I attached of how it looks on the browser when selected Dark or Light: