Skip to content

Offscreen image audit incorrectly reporting lazy-loaded images #6677

@mdiblasio

Description

@mdiblasio

Provide the steps to reproduce

  1. Run LH on https://oldnavy.gap.com/
  2. View "Defer offscreen images" audit

What is the current behavior?

https://oldnavy.gap.com/ lazy-loads below-the-fold ("BTF") images (example BTF image that is lazy-loaded on homepage).

The following LH reports incorrectly show lazy-loaded images in "defer offscreen images" audit. In addition, the above-the-fold images do not appear to render in timeline:

However, when run in CDT (v.3.0.3) and via WebpageTest (v.4.0.0-alpha.2-3.2.1), this audit passes and ATF images render.

The same audit discrepancy exists for https://pwa.www.1800flowers.com/ when run from web.dev vs. WPT.

I did notice that a change was made to offscreen images audit in v4.0.0-alpha.1.

What is the expected behavior?

Offscreen images audit should pass as BTF images are lazy-loaded.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions