Show a loading screen instead of a blank page while the app starts #134

Closed
opened 2026-11-20 20:09:35 +00:00 by jcoffey-dev · 1 comment
Owner

Reported on the forum (https://community.coffeylabs.org/t/232, post 42), follow-up to #128: after the sign-in fields stopped flashing, there's still a short blank screen when the app opens. The reporter suggests showing a loading indicator while it checks with the server.

What's on screen before the app knows whether you're signed in:

  1. web/index.html has an empty <div id="root"></div> until the bundle has downloaded and React mounts. Nothing is drawn in that gap: this is the blank moment, longest on a cold load or a slow connection.
  2. Once mounted, App.tsx shows <Spinner size="lg" /> while the session is loading or the language isn't ready. That part already covers the server check.

Wanted: no blank frame between opening the app and the sign-in page or the mailbox. Put a static placeholder inside #root in index.html (the inbuxa mark and/or a CSS-only spinner, on the theme background already set there) so it shows before any JavaScript runs, and React replaces it when it mounts. Keep it the same as the in-app loading view so the handover doesn't jump. No text, so there's nothing to translate.

Out of scope: caching sign-in state on the device to skip the server check. The session check must keep going to the server.

Forum reply: t/232 post 43.

Reported on the forum (https://community.coffeylabs.org/t/232, post 42), follow-up to #128: after the sign-in fields stopped flashing, there's still a short blank screen when the app opens. The reporter suggests showing a loading indicator while it checks with the server. What's on screen before the app knows whether you're signed in: 1. `web/index.html` has an empty `<div id="root"></div>` until the bundle has downloaded and React mounts. Nothing is drawn in that gap: this is the blank moment, longest on a cold load or a slow connection. 2. Once mounted, `App.tsx` shows `<Spinner size="lg" />` while the session is `loading` or the language isn't ready. That part already covers the server check. Wanted: no blank frame between opening the app and the sign-in page or the mailbox. Put a static placeholder inside `#root` in `index.html` (the inbuxa mark and/or a CSS-only spinner, on the theme background already set there) so it shows before any JavaScript runs, and React replaces it when it mounts. Keep it the same as the in-app loading view so the handover doesn't jump. No text, so there's nothing to translate. Out of scope: caching sign-in state on the device to skip the server check. The session check must keep going to the server. Forum reply: t/232 post 43.
jcoffey-dev added this to the 27.1 milestone 2026-11-20 20:09:35 +00:00
jcoffey-dev added the enhancement
priority
p3
labels 2026-11-20 20:09:35 +00:00
jcoffey-dev self-assigned this 2026-11-20 22:03:49 +00:00
Author
Owner

Fixed in #135: the app now shows its loading view (the inbuxa mark and a spinner, the same as the admin console) from the very first frame, before any JavaScript runs, and keeps the same view while it checks with the server, so there is no blank screen or jump on the way to the sign-in page or the mailbox. It will be in the next webmail release candidate.

Fixed in #135: the app now shows its loading view (the inbuxa mark and a spinner, the same as the admin console) from the very first frame, before any JavaScript runs, and keeps the same view while it checks with the server, so there is no blank screen or jump on the way to the sign-in page or the mailbox. It will be in the next webmail release candidate.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: inbuxa/inbuxa-webmail#134