From 0427a1b02c21fd5fa9f5df8a86e435dbb84a8451 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 26 Aug 2026 12:06:00 -0700 Subject: The page arrives light and paints at once: index.html shrinks to 46KB with a static boot shell baked in — brand row, and the profile frame when the path names one — while the 789KB bundle moves to a content-addressed app-.js the browser keeps (a repeat visit re-downloads kilobytes, not the app); the nostr-tools barrel import goes subpath, and the NIP-46 signer client ships as its own lazy file fetched on first bunker login MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_019eA8JRq9Wr7z2fRQk99HLi --- src/nip46-global.js | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/nip46-global.js (limited to 'src/nip46-global.js') diff --git a/src/nip46-global.js b/src/nip46-global.js new file mode 100644 index 0000000..a841905 --- /dev/null +++ b/src/nip46-global.js @@ -0,0 +1,9 @@ +// Standalone bundle for the NIP-46 remote-signer client (bunker:// and +// nostrconnect:// logins) — emitted as a separate dist/nip46.js and loaded on +// demand by nostr-login.js, the first time a bunker interaction happens. +// It's the heaviest, rarest corner of the login stack (and drags a second +// copy of the noble crypto stack via nostr-tools' own pins), so it stays out +// of the main bundle and off the initial load. +import * as nip46 from 'nostr-tools/nip46'; + +window.__nip46 = nip46; -- cgit v1.2.3