Skip to content

Comments

(pricing):Improve mobile performance#7433

Open
Sbragul26 wants to merge 6 commits intolayer5io:masterfrom
Sbragul26:fix/pricing-performance
Open

(pricing):Improve mobile performance#7433
Sbragul26 wants to merge 6 commits intolayer5io:masterfrom
Sbragul26:fix/pricing-performance

Conversation

@Sbragul26
Copy link
Contributor

Description

This PR fixes #6927.

This PR improves the mobile performance of the Pricing page by reducing unused JavaScript, deferring non-critical components and images, optimizing rendering behavior, and improving cache strategy.

Changes included:

  • Implemented lazy loading for below-fold components (Comparison, Reviews, OpenSourceBanner, FAQ) using React.lazy and Suspense
  • Added loading="lazy" to testimonial images
  • Enabled progressive lazy loading in review slider
  • Wrapped heavy components with React.memo() to prevent unnecessary re-renders
  • Used useCallback and useMemo to optimize event handlers and slider configuration
  • Optimized resize event listener with { passive: true } and improved debouncing
  • Improved cache headers for HTML, JS, CSS, images, and fonts
  • Added meaningful alt text for accessibility

These changes reduce unused JS, minimize main-thread work, and improve overall Lighthouse mobile performance.


Signed commits

  • Yes, I signed my commits.

Signed-off-by: Sbragul26 <sbragul26@gmail.com>
@l5io
Copy link
Contributor

l5io commented Feb 20, 2026

🚀 Preview for commit b57c150 at: https://699870aa5fd4f708e5253919--layer5.netlify.app

Signed-off-by: Sbragul26 <sbragul26@gmail.com>
@l5io
Copy link
Contributor

l5io commented Feb 20, 2026

🚀 Preview for commit c4a0ecb at: https://69987ced28828be06470801e--layer5.netlify.app

Signed-off-by: Sbragul26 <sbragul26@gmail.com>
@l5io
Copy link
Contributor

l5io commented Feb 20, 2026

🚀 Preview for commit 905e67c at: https://6998836065d0354d1b3dfee1--layer5.netlify.app

Signed-off-by: Sbragul26 <sbragul26@gmail.com>
@l5io
Copy link
Contributor

l5io commented Feb 20, 2026

🚀 Preview for commit 40aab7b at: https://699889873fd9b39db484d165--layer5.netlify.app

Signed-off-by: Sbragul26 <sbragul26@gmail.com>
@l5io
Copy link
Contributor

l5io commented Feb 20, 2026

🚀 Preview for commit 84f6c81 at: https://69988f71db605fb501a67219--layer5.netlify.app

Signed-off-by: Sbragul26 <sbragul26@gmail.com>
@l5io
Copy link
Contributor

l5io commented Feb 21, 2026

🚀 Preview for commit b492e68 at: https://69992892e8085e0c368fff43--layer5.netlify.app

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ Performance ] Improve Pricing page Performance

2 participants