Files
max-sixty__worktrunk/docs/static/code-copy.js
Maximilian Roos ad0c6ebeb8 fix(docs): prevent code block layout jump on page load (#622)
Move code block wrapper creation from deferred JavaScript to a synchronous
inline script at the end of <body>. This ensures the DOM structure is
finalized before the browser's first paint, eliminating the visible "jump"
when code blocks were wrapped after initial render.

Split into two phases:
1. Inline sync script wraps <pre> in .code-block-wrapper before first paint
2. Deferred code-copy.js adds copy buttons to existing wrappers

Co-authored-by: Claude <noreply@anthropic.com>
2026-01-14 01:50:17 -08:00

2.3 KiB