This theme component removes the core Discourse loading spinner, and replaces it with a loading slider at the top of the screen. This is a common approach on other sites (e.g. GitHub). The advantage is that there is less ‘flickering’ of content during a page change. Potential disadvantage is that it makes Discourse feel less like an app and more like a webpage.
||with theme component
This is so much more visually appealing to me. The loading spinner is nice but quite jarring.
Can we give it a try for a day or two on Meta @david ?
Sure, let’s see what it feels like. Enabled here on Meta (And temporarily pinned/renamed this topic so people know it’s happening)
While I like it, it does feel quite slower. Maybe it’s because I have ~250ms latency from Meta.
Yeah I am torn on it. I like that it stops the full-page flickering, but it does make the UI feel a little less responsive
Conversely I feel it makes the page feel faster with a low latency connection. Though the UI responsiveness is different.
I preferred the spinner, though to be honest I hadn’t really been aware of it. I like the way it is there for a split second then the page appears suddenly. This seems fast. With the bar, it makes me more aware of waiting. I found myself still looking at it when otherwise I could have started reading the page.
It might be some improvement if it “ended” at an earlier stage of page loading.
Or if you want to move away from the old spinner what about a new spinner that is like a circular version of the bar - reaching 360 degrees just before it disappears?
This was exposing a few different rendering bugs (e.g. navigating directly from one topic to another would cause issues displaying the OP). Removed from Meta for now, but you can still try it out using the theme creator link in the OP
Oh yes, this is 100% better, feel free to make it so!
The topic rendering bug should now be ironed out, so I’ve re-enabled this here on Meta. Let’s see how we get on with it.
Looking awesome. Keep up the good work.
I like it very much, even if customized spinners won’t show up most of the time.
One issue though. The loading bar isn’t used when you reload the topic or topic list you’re on.
If you’re on meta home, click on the logo, and you’ll see the spinner instead of the bar.
I like it much better than the spinner. Great work!
How to set/change the color of the loading bar though?
Currently it’s set based on the ‘quaternary’ color in the color scheme. It would be easy to customize individually via CSS if you wanted to.
Good catch, thanks. I’ll see if I can override that situation as well
Is the goal to eventually move this into core Discourse and not require a theme component?