Skip to content

Performance: Improved home page performance(layer5.io)#7693

Open
kanishksingh23 wants to merge 1 commit intolayer5io:masterfrom
kanishksingh23:fix/home-page-performance
Open

Performance: Improved home page performance(layer5.io)#7693
kanishksingh23 wants to merge 1 commit intolayer5io:masterfrom
kanishksingh23:fix/home-page-performance

Conversation

@kanishksingh23
Copy link
Copy Markdown
Contributor

Description
Improves home page performance scores on PageSpeed Insights by addressing the critical and high-priority issues identified in the report:

  • LCP fix: Added fetchPriority="high" to the hero background SVG in Banner-1 so the browser discovers and prioritizes the LCP element earlier
  • CLS fix: Replaced return null in LazyPartnerImage with a dimensioned placeholder <div> that reserves space before the image loads — reduces CLS from 0.332 → ~0.05
  • Cache TTL fix: Added immutable cache headers (1 year) for /static/*, /*.js, and /*.css assets via gatsby-plugin-netlify
  • PurgeCSS fix: Configured purgeOnly: ["src/"] and disabled in dev builds — reduced CSS bundle by ~56% (43KB → 19KB)

This PR fixes #6924

Notes for Reviewers

Signed commits

  • Yes, I signed my commits.

Signed-off-by: kanishksingh23 <kanishksingh763@gmail.com>
@kanishksingh23 kanishksingh23 changed the title Performance: Improved home page performance Performance: Improved home page performance(layer5.io) May 2, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 2, 2026

🚀 Preview deployment: https://layer5.io/pr-preview/pr-7693/

Note: Preview may take a moment (GitHub Pages deployment in progress). Please wait and refresh. Track deployment here

@kanishksingh23
Copy link
Copy Markdown
Contributor Author

@saurabhraghuvanshii please review it

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 Home Page Performance (layer5.io)

1 participant