The splash is the photograph, and it is painted before the app exists
Tests / test (push) Canceled after 0s
Publish Docker images / build (., ./web/Dockerfile, web) (push) Canceled after 0s
Publish Docker images / build (./api, ./api/Dockerfile, api) (push) Canceled after 0s

Two things about the launch screen on the phone.

**No mark on it.** The photograph is the screen now — the logo that sat in the middle is
gone, and so is the vignette that existed to keep that logo readable. Nothing to read, just
the picture, which is what was asked for.

**It no longer waits for React.** Until now the splash was a React element, so it could not
appear until the bundle had downloaded, parsed and mounted — on a phone that is the long
blank stretch between opening the app and seeing anything, and it is why the splash seemed
to arrive late and then flash past: by the time it rendered, the app was nearly ready.
index.html now paints the same photograph from inline styles, so it is on screen as soon as
the HTML is parsed, with the bundle still downloading behind it. React replaces the
container's contents when it mounts, and the two screens are identical — same image, same
object-fit, same base colour behind it while the picture decodes — so the handover cannot be
seen as anything but the app arriving.

The blank before even that is iOS's own launch screen, which is what apple-touch-startup-image
covers: production already serves all fourteen, so a PWA that still opens white is one that
was installed before those existed. Removing the icon from the home screen and adding it
again is what makes iOS pick them up — its launch images are read at install time, not on
every launch.
This commit is contained in:
dsantillan committed 2026-09-23 12:05:27 -04:00
1 parent b6d3512c36
commit 45183c725f
4 files changed
+22 -15

No files matched your search

+2 -1
View File
@@ -44,7 +44,8 @@ describe('the app shell', () => {
// The splash: the shell renders it before anything else, which is what a launch screen is.
expect(host.querySelector('.boot-splash')).toBeTruthy()
expect(host.querySelector('img.boot-photo')?.getAttribute('src')).toBe('splash.webp')
expect(host.querySelector('img.boot-logo')?.getAttribute('src')).toBe('logo.png')
// Only the photograph: the mark that used to sit on it is gone by request.
expect(host.querySelector('.boot-splash').querySelectorAll('img').length).toBe(1)
})
it('stays long enough to be seen, then gets out of the way', async () => {