Skip to content

fix(boot): no white screen between the boot screen and the Deck - #134

Merged
Darknode-Official merged 1 commit into
mainfrom
fix/boot-white-gap
Nov 24, 2026
Merged

Darknode-Official merged 1 commit into
mainfrom
fix/boot-white-gap

Conversation

@Darknode-Official

Copy link
Copy Markdown
Owner

Problem

After the boot screen, signed-in users saw a white page for 1-2 s before the Deck appeared.

renderApp dismissed the boot screen first. The Deck then loaded its code (deck-ui.js, console-nav.js) and made three Firestore reads in a row (profile, plan share, notifications). The empty body.app page showed for that whole time.

Fix

  • auth.js: the Deck paths (web renderDeckHome, desktop renderDesktopHome) dismiss the boot screen in .finally(), after openDeck has drawn or failed. The embed/console path dismisses it as before. The landing, verify and TOS gates still dismiss it themselves. The progress bar moves to 85 while the Deck loads.
  • deck/launch.js: the Deck code and the three reads now load together (Promise.all) instead of one after another, so the boot screen also comes down sooner.

Verification

  • Ran the live site and the local build with deck-ui.js delayed by 1.5 s (fresh context, SW blocked):
    • live: bootGone@2282, deckMounted@2574, so about 300 ms of empty page; a real signed-in user also waits on the Firestore reads.
    • local: deckMounted@1909, bootFadeStart@2090, bootGone@2590, so the boot screen fades over a Deck that has already drawn.
  • Guest Deck at 1440 and 390: draws normally, no page errors.
  • Signed-out landing: boot screen dismissed.
  • Deck tool frame (/dns?embed=1): renders, no boot screen.
  • npm test: 5057 passed, 0 failed.

Signed-in loads faded the boot screen out as soon as sign-in resolved, then
loaded the Deck code and three Firestore reads one after another, so the empty
page showed for 1-2 s. The Deck paths (web and desktop) now dismiss the boot
screen once openDeck has drawn (or failed), and openDeck loads its code and
the profile, plan-share and notification reads together.
@Darknode-Official
Darknode-Official merged commit 3b010fd into main Nov 24, 2026
10 checks passed
@Darknode-Official
Darknode-Official deleted the fix/boot-white-gap branch November 24, 2026 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant