Repository navigation
fix(boot): no white screen between the boot screen and the Deck - #134
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
After the boot screen, signed-in users saw a white page for 1-2 s before the Deck appeared.
renderAppdismissed 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 emptybody.apppage showed for that whole time.Fix
auth.js: the Deck paths (webrenderDeckHome, desktoprenderDesktopHome) dismiss the boot screen in.finally(), afteropenDeckhas 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
deck-ui.jsdelayed by 1.5 s (fresh context, SW blocked):bootGone@2282,deckMounted@2574, so about 300 ms of empty page; a real signed-in user also waits on the Firestore reads.deckMounted@1909,bootFadeStart@2090,bootGone@2590, so the boot screen fades over a Deck that has already drawn./dns?embed=1): renders, no boot screen.npm test: 5057 passed, 0 failed.