Repository navigation
perf: Web Vitals, caching, fonts, and prefetching optimization - #572
Merged
Darkvader-ship-it merged 1 commit intoOct 18, 2026
Merged
Darkvader-ship-it merged 1 commit into
Darkvader-ship-it merged 1 commit into
Conversation
Add comprehensive font-loading optimizations with CLS containment: - Font display strategy with swap/optional for progressive loading - Size containment on body to prevent layout shifts - Latin-only font subset for faster parsing Implement Web Vitals monitoring and CI budget gates: - WebVitalsReporter component tracks LCP, FID, CLS, TTFB, INP - Automatic metric rating system (good/needs-improvement/poor) - GitHub Actions workflow validates performance budgets - GA4 integration for production RUM pipeline Configure edge and full-route caching strategy: - Immutable caching for static assets and fonts (1 year) - Stale-while-revalidate for HTML pages (1h edge + 24h stale) - CDN matrix with route-specific cache headers - Automatic Vercel edge revalidation support Add intent-based link prefetching and route preloading: - useLinkPrefetch hook with hover/touch intent detection - useRoutePreload for preloading critical routes - Automatic deduplication and error handling - LinkPrefetchProvider integration for app-wide prefetching Closes PHASE-STELLAR#515 Closes PHASE-STELLAR#519 Closes PHASE-STELLAR#516 Closes PHASE-STELLAR#521
|
@maja507 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
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
Implements comprehensive web performance optimizations across four key spikes:
Changes
Font Optimization (#515)
app/layout.tsx: Configured font display properties (swap/optional)app/globals.css: Added CLS containment with size constraintsWeb Vitals Monitoring (#519)
components/web-vitals-reporter.tsx: Core metrics tracking (LCP, FID, CLS, TTFB, INP).github/workflows/web-vitals-budget.yml: CI budget validationCaching Strategy (#516)
next.config.mjs: Enhanced headers with multi-layer cache configurationLink Prefetching (#521)
hooks/use-link-prefetch.ts: Intent-based prefetch with hover/touch detectioncomponents/link-prefetch-provider.tsx: App-wide prefetch providerDocumentation
docs/PERFORMANCE.md: Comprehensive performance guideTesting
Performance Impact
Closes #515
Closes #516
Closes #519
Closes #521