Skip to content

Performance: Improve Home Page Performance (layer5.io)#7710

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

Performance: Improve Home Page Performance (layer5.io)#7710
kanishksingh23 wants to merge 1 commit intolayer5io:masterfrom
kanishksingh23:fix/home-page-performance-v2

Conversation

@kanishksingh23
Copy link
Copy Markdown
Contributor

@kanishksingh23 kanishksingh23 commented May 6, 2026

Description

  • Add fetchPriority=high to hero SVG in Banner-1 for faster LCP discovery
  • Fix CLS in Partners section by always rendering the <img> tag with a transparent placeholder until the real image loads, instead of returning null, which caused a layout shift (CLS: 0.332 → ~0.05)
  • PurgeCSS configured with purgeOnly: [src/] and develop: false to reduce CSS bundle size

This PR fixes #6924

Notes for Reviewers

Before SS
image

After SS
image

This time, nothing is broken
image

Signed commits

  • Yes, I signed my commits.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 6, 2026

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

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

@kanishksingh23 kanishksingh23 force-pushed the fix/home-page-performance-v2 branch from c4a4578 to d2e65f5 Compare May 6, 2026 18:31
@kanishksingh23 kanishksingh23 force-pushed the fix/home-page-performance-v2 branch 2 times, most recently from 327a1b4 to a29dea9 Compare May 7, 2026 04:13
Signed-off-by: kanishksingh23 <kanishksingh763@gmail.com>

perf: improve home page performance

Signed-off-by: kanishksingh23 <kanishksingh763@gmail.com>

perf: improve home page performance

Signed-off-by: kanishksingh23 <kanishksingh763@gmail.com>

perf: fix partner image CLS by using empty src placeholder

Signed-off-by: kanishksingh23 <kanishksingh763@gmail.com>

perf: use sized svg placeholder for partner images to prevent CLS

Signed-off-by: kanishksingh23 <kanishksingh763@gmail.com>
@kanishksingh23 kanishksingh23 force-pushed the fix/home-page-performance-v2 branch from 79d17c7 to ac4f03e Compare May 7, 2026 05:46
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