perf: Font display swap + eliminate remaining non-composited animations#123
Merged
vibemarketerpromax merged 1 commit intomainfrom Feb 23, 2026
Merged
Conversation
- Switch font display from optional → swap for Outfit and Inter, eliminating ~100ms FOIT block period for faster text paint - Replace transition-all with property-specific transitions across all homepage components (Navigation, HeroContent, CTA, AboutTeaser, HowWeWork, FeaturedCaseStudies, CaseStudyCard, Button base) - Convert CaseStudyCard decorative line from width animation to scaleX transform for GPU-composited rendering
Deploying website with
|
| Latest commit: |
64cefd0
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://d0a19f89.website-yiq.pages.dev |
| Branch Preview URL: | https://perf-lcp-and-remaining-diagn.website-yiq.pages.dev |
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
optional→swapfor Outfit and Inter fonts — eliminates ~100ms FOIT (Flash of Invisible Text) block period, rendering fallback font immediately then swapping when custom fonts load.adjustFontFallback: trueminimizes CLS during the swap.transition-allwith property-specific transitions across all homepage components — eliminates non-composited animation warnings from PageSpeed Insights. Affected: Navigation header, HeroContent CTAs, CTA section button, AboutTeaser buttons, HowWeWork cards, FeaturedCaseStudies links, CaseStudyCard links, and the base Button component.scaleXtransform for GPU-composited rendering (same pattern used in PR perf: Fix non-composited animations and reduce critical-path waste #122).Impact
What's NOT fixable from code
scrollbar-colorPageSpeed flag: Benign progressive enhancement (Chrome 121+).Files changed (9)
app/layout.tsx— font display swapcomponents/navigation/Navigation.tsx— header transitioncomponents/sections/HeroContent.tsx— CTA button transitionscomponents/sections/CTA.tsx— CTA button transitioncomponents/sections/AboutTeaser.tsx— button transitionscomponents/sections/HowWeWork.tsx— card transitionscomponents/sections/FeaturedCaseStudies.tsx— link transitionscomponents/ui/CaseStudyCard.tsx— link + decorative line transitionscomponents/ui/Button.tsx— base button transitionTest plan