Repository navigation
Browser: printing-receipt loading splash while the WASM runtime downloads - #18
Merged
Merged
Conversation
The page stayed blank until the ~50 MB runtime had downloaded and Avalonia drew its first frame (over a minute on a slow connection). index.html now carries an #avalonia-splash: a receipt feeds out of a printer slot as files arrive (the loader's onDownloadResourceProgress), with a "Downloaded N of M files" count, then "Starting the emulator…". Avalonia adds .splash-close on its first frame; main.js also closes it once Main has run. If start-up fails, the splash stays up with the error and a reload hint instead of a blank page. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This was referenced Sep 22, 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.
Replaces the blank page shown while the browser version downloads (~45 MB, 235 files) with a loading splash in the app's own language: a small thermal printer prints a receipt of the download.
What it does
.splash-closeto#avalonia-splash, andmain.jsadds it too afterrunMainas a fallback.*** PRINT FAILED ***at once, and the status says to reload, followed by the underlying error.role="status"), not each receipt line. Withprefers-reduced-motion, lines appear without the feed animation and the LED doesn't blink.PerformanceObserver), so names and sizes are real and cache hits count. The first commit usedonDownloadResourceProgress. That hook isn't indotnet.d.ts, and its file total grows during startup (25, then 54, then 140), so progress could jump backwards.Tested locally
I published with
-c Release -p:PublishTrimmed=false -p:CompressionEnabled=false, servedwwwroot, and drove Chromium via Playwright:dotnet.native*.wasmaborted): the error state shows the red LED, thePRINT FAILEDline and the error message.Merging redeploys the Pages demo. No new tag is needed.
🤖 Generated with Claude Code