Skip to content

Conversation

0xsuid
Copy link

@0xsuid 0xsuid commented Apr 25, 2025

Description

  • Disabled lazy loading for the first image to improve perceived page load speed and Largest Contentful Paint (LCP) metrics.
  • Updated the loading attribute to be dynamic:
    loading="{{#if @index}}lazy{{else}}eager{{/if}}"
  • The first image (@index = 0) now uses eager loading.
  • All subsequent images continue to use lazy loading.

Why:

Improving the loading strategy for critical content enhances user experience and boosts SEO performance by optimizing core web vitals

Disable lazy loading for the first image
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.

1 participant