Skip to content

Conversation

@Fireentity
Copy link
Contributor

Description

This PR addresses the "LCP request discovery" performance issue flagged in #6930 regarding the blog page. I updated the Card component to accept dynamic loading properties and modified the blog list and grid views to explicitly set loading="eager" and fetchpriority="high" for the first post's image. This ensures the Largest Contentful Paint element is prioritized and not lazy-loaded, significantly improving the page's initial render metrics while maintaining lazy loading for subsequent images.

This PR fixes #6930

Notes for Reviewers

Signed commits

  • Yes, I signed my commits.

Update the Card component to accept loading and fetchpriority props. Apply eager loading and high fetch priority to the first post in both Blog-grid and Blog-list sections to improve rendering performance.

Signed-off-by: Lorenzo Croce <lorenzo.croce@arenastudios.it>
@l5io
Copy link
Contributor

l5io commented Nov 23, 2025

🚀 Preview for commit 0669d28 at: https://6923910d3100b6bfa775b4be--layer5.netlify.app

@leecalcote
Copy link
Member

Thank you, @Fireentity. I wonder if you have a sense of the before and after in terms of LCP the blog list / grid page. I recognize this can be hard to assess given that the lighthouseci workflow only executes on merged code.

Copy link
Member

@leecalcote leecalcote left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good. 👍

@leecalcote leecalcote merged commit ccb7a29 into layer5io:master Nov 25, 2025
4 checks passed
@Namanv0509 Namanv0509 self-requested a review November 25, 2025 07:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ Performance ] Improve Blog page Performance

3 participants