Repository navigation
A loading screen, and "OpenBot couldn't load" with Try again, never a blank page - #2919
Merged
Merged
Conversation
… blank page Until the app's code and styles arrive, index.html drew nothing, so a slow or broken connection showed a plain white page with nothing to press. On 3 Dec that happened in a phone's Home Screen app on a conference's Wi-Fi for two minutes, while every request that reached OpenBot was answered. index.html now draws its own screen, as Gmail does: the theme's ground at once, "Loading…" after a second, and "OpenBot couldn't load. Check your connection." with Try again when the app's code or styles fail to download or the app hasn't started in ten seconds. It goes the moment the app draws. Plain CSS and a classic script, colours from the scheme's tokens, the layout of the app's error screen. app/tests/boot-screen.test.ts holds it in Chromium and WebKit, and holds the fallback colours to tokens/src/scheme.ts.
davidmckayv
requested review from
MikeRyanDev,
dustywusty,
guidovizoso,
mxmzb,
samjulien and
tylerslaton
as code owners
December 4, 2026 03:46
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Dec 4, 2026
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.
What
index.htmlnow draws its own screen before the app's code arrives, so the page is never plain white:It's plain CSS and a classic inline script in the page, because nothing of the app's has loaded yet. The colours are the scheme's tokens: once the app's stylesheet has loaded they come from there, skins included, and until then from the scheme's own values. The layout is the app's error screen's (
route-error.tsx). Nothing else changes visually.Why
On 3 Dec 2026, someone opened OpenBot from a phone's Home Screen on a conference's Wi-Fi and got a blank white page for about two minutes. Every request that reached OpenBot got a normal answer. Until the app's code arrives,
index.htmldraws nothing, and nothing tells the person anything or offers a way out.What the leaders do: Gmail draws a loading screen with no scripts at all, and after a while says it is taking longer than usual and offers to try again (Gmail blog, Gmail won't load). On iOS Home Screen apps, a white screen means the app's JavaScript never ran (Netlify thread, WebKit bug 256219).
WebKit does draw this screen while the app's code is still downloading. It paints once the page has finished parsing and no stylesheet or font is pending (
LocalFrameView::checkAndDispatchDidReachVisuallyNonEmptyState), and a recording of WebKit with the app's code held shows the dark ground and "Loading…".Tests
app/tests/boot-screen.test.tsruns in real Chromium and WebKit. It uses the realindex.htmlwith the entry script and stylesheet where Vite's build puts them, the real app stylesheet, and a React app standing in formain.tsx:tokens/src/scheme.ts, the words follow the copy rules, and the theme's script stays the page's first.Red on main: 13 of 15 fail. Only "an app that loads never sees the screen" passes, in both engines, since there is no screen. Green with this change: 15 of 15, in Chromium and WebKit.
Changelog
Web app and OpenBot Desktop.