How to add a loading page, some like Gmail?
AI-generated summary
The discussion revolves around adding a loading page to a Discourse site, similar to Gmail. kudouyuzi initiated the topic, and EducatorWaji and dax suggested that a loading page might be unnecessary and that the site’s slow loading time should be addressed instead.
kudouyuzi explained that the site takes a long time to load, and EducatorWaji asked questions about the site’s hosting provider, plan, RAM, and installation method to help identify the issue.
david asked about the local server setup, and kudouyuzi provided details about the server configuration. codinghorror pointed out that Discourse’s first-load time will never be its strong suit due to its JavaScript nature, but subsequent loads are fast.
The discussion concluded with kudouyuzi wanting a loading page for aesthetic purposes, and erlend_sh linking to a previous discussion about showing a loader starting page for slow connections.
Let me ask you? Why would you want to do that. It is a huge turn off for me, if I see that sort of thing in any of the forums I visit
I did not find a solution in the forum.
I need this because the discourse load takes a long time.
THX
If you really need a “Loading, please wait…” page, certantly something is wrong in your site or your server is very busy or with too little RAM.
Try to understand why your site is slow before anything else.
Let’s not cover up the basic problem your site have. We the entire community will try to help you. In an average, as far I have seen discourse only takes about 8 seconds to load the entire site.
I would like to get answers to a few questions I ask you below. So that, I or any other good member in this community can help you.
- Which hosting provider you are with?
- Which plan?
- How many GB’s of RAM?
- Have you followed the discourse supported docker install. (If the answer for this question is no, please try to install using the supported Install method)
I have tried on the local server, but still slow to load
How are you running the local server? And on what OS? If you’re running in development mode there will be a lot of optimisations disabled!
My server is KVM vps, RAM 4gb free 1.3gb, BW is 100mbpe
https://meta.discourse.org/t/home-index-taking-to-long-to-load/20026
https://meta.discourse.org/t/my-site-page-load-slow-i-have-no-idea/20947/
UB 16.04
Whats the development mode?
Discourse is a JavaScript application that runs on the client, first load time is never going to be its strong suit. It is competitive but it will never lead the pack in this area. This trade off is made so subsequent loads are incredibly fast as only minimal JSON is transmitted over the wire for each subsequent action after first load.
If that is a problem for you, I suggest choosing different software.
I just want a loading page, have a loading page will look better.
Running that same test against this site returns similar results, so there’s probably nothing wrong with your setup. It’s a trade-off, as @codinghorror said. There’s plenty of discussion about this in all of the threads you linked to.
Maybe you are right. Thx
Already discussed here:

