New
Introducing React Bench, see how different models perform on React code

react-doctor/no-img-lazy-with-high-fetchpriority

Lazy image with high fetchPriority

  • Category: Performance
  • Severity: warn
  • Source: oxlint-plugin-react-doctor
  • Framework: global
  • Enabled when: react
  • Default: Enabled

Validation prompt

Use this to decide whether a fired diagnostic is real or a false positive.

Confirm the reported code matches Lazy image with high fetchPriority. Check the framework context and diagnostic message before suppressing it.

Fix prompt

Use this once validation confirms the diagnostic is real.

Don't combine loading="lazy" with fetchPriority="high". A high-priority image (usually the LCP) should load eagerly; a lazy image is by definition not high priority.

More Performance rules from the rules reference: