Skip to content

Fix PeerPay blank startup caused by oversized icon bundle - #12

Merged
BraydenLangley merged 1 commit into
masterfrom
codex/fix-startup-loading
Oct 20, 2026
Merged

BraydenLangley merged 1 commit into
masterfrom
codex/fix-startup-loading

Conversation

@BraydenLangley

Copy link
Copy Markdown
Contributor

PeerPay can remain blank while downloading a 6.47 MB startup bundle. The identity widget imports metanet-react-prompt, whose CommonJS DownloadButton pulls the entire Material UI icon library into that bundle for one arrow icon.

Narrow that exact known dependency import to KeyboardArrowDownOutlined, with a build failure if the dependency implementation changes. No wallet, payment or identity protocol behavior or dependency versions change. Add an immediate loading message and require frontend tests, typecheck, build and a 2.2 MB startup budget before CARS deployment.

Validation: 19 tests, TypeScript and production build pass locally. Main JavaScript is 2,048,370 bytes (about 68% smaller than the deployed 6,467,372 bytes), gzip about 601 KB. The built candidate renders payment controls, identity search and the inbox in a fresh browser without a connected wallet; no payment was submitted. Linux CI and guarded production rollout/verification follow before closeout.

@BraydenLangley
BraydenLangley merged commit 5baa703 into master Oct 20, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant