Commit Graph

6 Commits

Author SHA1 Message Date
pewdiepie-archdaemon d1a753e2b0 Fix library space toggles 2026-06-01 14:50:06 +09:00
pewdiepie-archdaemon 99b6b9562d Let hovered space toggles override stale focus 2026-06-01 14:45:47 +09:00
pewdiepie-archdaemon 6bee3833f7 Improve space toggles and email warmup 2026-06-01 14:35:38 +09:00
pewdiepie-archdaemon 865d88f359 Polish email send and card toggles 2026-06-01 13:52:07 +09:00
chrisdvz.io ad38492894 perf(ui): hoist esc() lookup table and build option lists once (#160)
Hoist the HTML-escape lookup table in static/js/ui.js out of the
String.replace callback so it is allocated once instead of on every
matched character. esc() is the canonical escaper aliased across 27
modules and runs on essentially every render, so this removes a lot of
short-lived garbage on the hottest text path. Output is byte-identical
(verified across null/undefined/emoji/attribute edge cases).

Also build the <select> option lists in cookbook-hwfit.js and group.js
by accumulating a string and assigning innerHTML once, instead of
`innerHTML +=` inside a forEach (which makes the browser re-parse the
element's markup on every iteration). Final DOM is unchanged.

Pure micro-optimizations; no behavior change.

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-01 13:09:33 +09:00
pewdiepie-archdaemon e5c99a5eee Odysseus v1.0 2026-05-31 23:58:26 +09:00