Perf/lighthouse optimization#65
Merged
truthixify merged 7 commits intoJun 29, 2026
Merged
Conversation
added 6 commits
June 29, 2026 16:20
|
Someone is attempting to deploy a commit to the truthixify's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
@abbys-code-hub 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! 🚀 |
Contributor
|
Clean merge. Lighthouse CI config + 96-line PERF.md + 131-line font preload + woff2 assets + index.html optimizations + workflow. Thanks @abbys-code-hub. |
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 #22
Description
This PR implements comprehensive Core Web Vitals and Lighthouse optimizations for the Wraith Protocol landing page and secondary pages. By self-hosting assets, tree-shaking heavy SDKs, lazily loading below-the-fold components, and inlining critical CSS, we have achieved 95+ scores on all 4 axes for both mobile and desktop views.
⚡ Performance Audits Summary
📈 Core Web Vitals Metrics (Mobile)
🛠️ Key Changes
Font Optimization (Self-Hosting & Subsetting):
.woff2files for only the used weights of Space Grotesk, Inter, and JetBrains Mono.font-display: swapto all font-face definitions to prevent FOIT (Flash of Invisible Text) and added critical preloads insideindex.html.Main Bundle Tree-Shaking:
@wraith-protocol/sdkinsideStellarMetrics.tsxwith local configurations. This allowed Rollup/Vite to fully tree-shake the heavy@stellar/stellar-sdkpackage.Homepage Component & Page Code-Splitting:
Architecture,ForDevelopers,Chains,StellarMetrics,Compare,Showcase,EcosystemPartners,CtaStrip,Footer) and secondary route pages (/faq,/stellar,/use-cases,/privacy) inReact.lazy()andSuspense.Above-the-Fold Pre-rendering:
HeaderandHerosections directly inside<div id="root">insideindex.html. The browser renders this instantly while downloading the JS bundles.Critical CSS Inlining:
scripts/inline-css.jsthat injects the compiled stylesheet contents directly inside<style>tags inindex.htmland deletes the external stylesheet asset to eliminate render-blocking CSS downloads.Image Optimization:
logo.pngfrom 35 KB down to 2.4 KB.widthandheightdimensions to the brand logo, footer logos, and partner SVGs to completely eliminate Lighthouse "unsized images" diagnostics and layout shifts.CI/CD Lighthouse Integration:
.github/workflows/ci.ymland.github/lhci-desktop.jsonto boot a preview server on every pull request, run Lighthouse CI on mobile and desktop profiles, upload results to temporary public storage, and post a markdown score card comment directly on the PR.🧪 Verification
pnpm test) to ensure all lazy routing and axe accessibility test expectations pass successfully.