xuyueandClaude Opus 5.5 0c94f2db87
Deploy / deploy (push) Successful in 49s
perf(暗色): 每次打开页面不再白白强制重算两次整页样式
上一版全站共用一个 useDark 之后,它一进页面仍要把 <html> 的 class 同步两遍,每遍都插
style + getComputedStyle 逼整页重算。class 已经对了就跳过,只有真要切换时才走原来那套。
CPU 降速 6 倍下每页省约 25ms;切换暗色、暗色下刷新、切回亮色都核过。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 14:36:11 +08:00
S
Description
No description provided
10 MiB
0 Stars 1 Watchers 0 Forks
Languages
TypeScript 51%
Vue 47%
Shell 1%
CSS 0.6%
Dockerfile 0.4%