S
dsh-cv-warm
suzunami/dsh-cv-warm
用 content-visibility 跳过屏幕外的会话块渲染,并预热视口附近的区块,让滚动更顺滑。
安装
dsh plugin --profile web add github:suzunami/dsh-cv-warmREADME
dsh-cv-warm
Local-only DSH client plugin.
- Gives transcript markdown containers
content-visibility: auto+contain-intrinsic-size: auto 800px, so offscreen blocks skip layout and compositing. This is what makes session switches and streaming cheap on transcripts with thousands of KaTeX nodes. - Keeps a band of ~2 viewports around the scrollport switched to
content-visibility: visiblevia IntersectionObserver, so blocks are rendered before they scroll into view (removes the reveal hitch) and fall back toautoonce they leave the band (so nothing accumulates).
Verify: window.__cvWarm → { installed: true, blocks, warmed }
Disable: window.__cvWarm.off()