Skip to content

fix: prevent docs font swapping on first visit - #10

Merged
jlc488 merged 1 commit into
masterfrom
fix/docs-atomic-font-loading
Oct 29, 2026
Merged

jlc488 merged 1 commit into
masterfrom
fix/docs-atomic-font-loading

Conversation

@jlc488

@jlc488 jlc488 commented Oct 29, 2026

Copy link
Copy Markdown
Collaborator

On machines without Pretendard installed, the remotely imported font can change already painted text. Serve the unmodified official Pretendard 1.3.9 variable font as one self-hosted optional face and preload it. Disable Material's redundant Google font loading while keeping the existing typography stack, theme and publisher attribution. The font asset is 2,057,688 bytes and includes its OFL license and SHA-256 provenance.

Validation: MkDocs strict builds for English and Korean; publisher output check; nine isolated local-font-disabled browser cases across 1440/320/375px and cold/warm/slow visits. No post-paint text width/height changes or horizontal overflow. Normal/cached visits use the webfont; slow visits retain a consistent system fallback. Total observed CLS reached 0.000622 from small language-menu positioning changes.

@jlc488
jlc488 marked this pull request as ready for review October 29, 2026 08:07
@jlc488
jlc488 merged commit e68de99 into master Oct 29, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant