perf(playground): preload the initial sans font#5
Merged
Conversation
Code Metrics ReportDownload coverage report: lcov-report
Details | | main (441a7a4) | #5 (7e711ed) | +/- |
|---------------------|----------------|--------------|------|
| Coverage | 100.0% | 100.0% | 0.0% |
| Files | 63 | 64 | +1 |
| Lines | 1323 | 1358 | +35 |
+ | Covered | 1323 | 1358 | +35 |
- | Code to Test Ratio | 1:1.8 | 1:1.8 | -0.1 |
| Code | 4265 | 4356 | +91 |
+ | Test | 7948 | 8080 | +132 |
| Test Execution Time | 1s | 1s | 0s |Code coverage of files in pull request scope (0.0% → 100.0%)
Reported by octocov |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
GeistVariableLatin-*.woff2asset in generated playground HTML.SVGO_PRELOAD_INITIAL_FONT=0for A/B checks.Validation
pnpm run check:fixpnpm run test:coveragepnpm --filter ./apps/playground typecheckpnpm vitest run apps/playground/src/build/preload-font-build-output.test.ts apps/playground/src/entries/entrypoints.test.tsxpnpm --filter ./apps/playground buildNotes
Local preview timing showed the sans font request moving from a CSS-initiated start around
46.5msto a link-initiated start around10.6ms. I keptfont-display: blockunchanged: theswapcheck did not show a meaningful paint improvement after preload, and delayed-font checks showed visible text metric changes that could surface as FOUT.