Skip to content

Restore lazy loading for non-eager game cards #473

Description

@coderabbitai

Summary

Restore lazy loading for non-eager game-card images.

Required change

In src/app/games/components/GameCard.tsx, set ImageRenderer to use loading="lazy" when props.eagerLoad is false. Keep loading="eager" when props.eagerLoad is true.

Rationale

The current undefined value omits the loading attribute. For external images rendered as plain <img> elements, this can cause below-the-fold cards to load eagerly.

Affected area

  • src/app/games/components/GameCard.tsx
  • GameCard
  • ImageRenderer loading behavior

Acceptance criteria

  • Cards with eagerLoad={true} render with loading="eager".
  • Cards with eagerLoad false or omitted render with loading="lazy".
  • The games grid does not eagerly load below-the-fold external images.

Backlinks

Activity

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions