Repository navigation
perf: reduce initial font and image loading - #122
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
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.
Work and Contact load an unused italic font eagerly, use maximum quality for local covers, and deliver the original oversized Contact portrait. The Contact intro also starts hidden until its reveal script runs.
Preload only the normal serif font, retain italic on demand, use quality 80 for local covers and a responsive Astro Image for the same Contact portrait. Render the Contact intro and portrait immediately. Preserve text, original images, dimensions and visual styling.
Validation: regression failed with script requests blocked before the change and now passes; full 14-test Chromium suite, Astro Check (60 files, zero issues), asset checks, Vercel and Node builds. Mobile inspection preserves 4:5 portrait crop and no overflow; independent review found no blockers. Node preview portrait generation reduces the 156 KiB source to a 63 KiB variant at 960px.
Three production Lighthouse runs per page establish a pre-change median LCP of 3.96s for Work and 3.65s for Contact. Post-deployment measurements will use the same profile. Local measurements indicate improvement but are not field Core Web Vitals or proof of meeting the 2.5s target.