Rank 1
8 days ago by wuyifan-code
The Pretext Optimizer plugin reduces rendering overhead in large notes by computing text height ahead of time and applying `min-height` before the browser measures each block. It works in both preview and edit mode, hooking into markdown rendering and CodeMirror lines so long callouts, blockquotes and tables open with less layout churn. A smart cache reuses results for identical text and font combinations, which cuts repeated work across similar content. Recent changes also narrow scanning to visible content, throttle mutation handling with animation frames and batch heavier processing when the browser is idle.