perf: Optimize core performance metrics across frontend#182
Merged
therealjhay merged 2 commits intoJun 30, 2026
Merged
Conversation
Implemented four critical performance optimizations to improve Core Web Vitals: 1. Font Display Optimization (Betta-Pay#43): Added explicit display: 'swap' to Inter font configuration to ensure text remains visible during webfont load, preventing FOIT and improving LCP metrics. 2. Route Prefetching (Betta-Pay#45): Added strategic router.prefetch() calls in merchant layout for commonly accessed routes (transactions, payments) to reduce navigation latency for frequent user journeys. 3. Virtual Scrolling for Transactions Table (Betta-Pay#46): Integrated @tanstack/react-virtual to render only visible table rows. Fixed height container (600px) with overflow scroll ensures smooth scrolling with 1000+ rows while reducing DOM nodes from thousands to ~15-20 visible at any time. Maintains proper table semantics. 4. Icon Tree-Shaking Verification (Betta-Pay#44): Audited all lucide-react imports to confirm named-import pattern (no wildcard imports). Added @next/bundle-analyzer for production bundle verification that only used icons are included. All changes maintain existing functionality and preserve search/filter on full dataset. Changes follow project code patterns and pass linting checks. Closes Betta-Pay#43, Betta-Pay#44, Betta-Pay#45, Betta-Pay#46 Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
|
@girly-coder01 is attempting to deploy a commit to the therealjhay's projects Team on Vercel. A member of the Team first needs to authorize it. |
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
Implemented four critical performance optimizations to improve Core Web Vitals and user experience:
#43 - Font Display Optimization
#45 - Route Prefetching
#46 - Virtual Scrolling for Transactions Table
#44 - Icon Tree-Shaking Verification
Closes #43, Closes #44, Closes #45, Closes #46