perf: Lighthouse and Core Web Vitals optimizations (#22)#1
Open
abbys-code-hub wants to merge 2 commits into
Open
perf: Lighthouse and Core Web Vitals optimizations (#22)#1abbys-code-hub wants to merge 2 commits into
abbys-code-hub wants to merge 2 commits into
Conversation
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.
Closes wraith-protocol#22
This PR introduces critical performance and core web vitals optimizations for the landing page, raising all Lighthouse scores to 95+ (specifically achieving 99-100 on all axes on mobile and desktop).
Optimizations Performed:
.woff2variable assets, settingfont-display: swapand preloading critical font files to avoid render-blocking CDN network requests.index.html, eliminating stylesheet network requests entirely.logo.pngto WebP, resized it from 1288x1020 to 120x95 (saving 92% file size), and set explicit width/height attributes for logos and SVGs to prevent cumulative layout shifts (CLS).<main>container for better screen-reader landmarks. Tweaked--color-outlineto#858585to satisfy the WCAG AA 4.5:1 text color contrast requirements./robots.txtand/llms.txtconfig files..github/workflows/ci.ymlthat comments on PRs with mobile and desktop performance reports.Local Audit Results (Post-Optimization):