openpencil/crates/op-host-web
Kayshen-X e7c0f3f292 perf: lazy-load the iconify brand-logo catalog off the web first-load
The Iconify catalog was 41% of the web wasm; ~91% of its bytes are 3700
simple-icons brand logos vs only 0.46 MB for lucide+feather. Split it: embed the
core UI sets, load brands at runtime — desktop embeds + serves them
(/assets/iconify-catalog-brands.json), web fetches that route at mount and
registers via set_brand_catalog. Web wasm 13.7 -> 8.2 MB raw, 4.17 -> 2.18 MB
gzip (-48% over the wire); desktop keeps all icons. Brands registered in main()
before every native render path (GUI / --render-shots / MCP).
2026-06-19 14:32:47 +08:00
..
assets/canvaskit fix(web): use browser fonts in canvaskit shell 2026-06-19 02:39:34 +08:00
pkg-ck fix(web): expand browser font fallback stack 2026-06-19 07:30:34 +08:00
pkg-webgl refactor(renderer): consolidate web shell on CanvasKit, retire skia path 2026-06-18 09:34:37 +08:00
smoke refactor(rust): rename openpencil-shell-web host to op-host-web 2026-05-16 23:42:49 +08:00
src perf: lazy-load the iconify brand-logo catalog off the web first-load 2026-06-19 14:32:47 +08:00
tests fix(web): measure canvas text with draw style 2026-06-19 08:13:40 +08:00
.gitignore refactor(rust): rename openpencil-shell-web host to op-host-web 2026-05-16 23:42:49 +08:00
Cargo.toml fix(web): close native parity gaps in rust web host 2026-06-19 12:56:43 +08:00