fix(website): render later canvases on the page after worker failure

Merged
TH
2d ago
+85-5

Summary

The homepage registers four canvases at load and starts each when it approaches the viewport. An asynchronous module-worker load error can arrive between those callbacks. Record the failure in the shared host so subsequent mounts use the existing page renderer.

Before / after

Before, scrolling to another scene after the worker failed transferred its canvas to the failed worker. After, that scene keeps its canvas and draws on the page. Canvases transferred before the error still belong to the worker.

Validation

CI pending at 6f4dd775c55255d04cf7cf8a6ae840a82106a703. Focused regressions cover later mounts after a startup failure and after a running worker reports an error. Validation is CI-only. On the prior head, all three native builds succeeded before post-job cleanup failed. That job was retried once.


Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.