Skip to content

Should lazy loading be bound to scripting being enabled? #5495

@SebastianZ

Description

@SebastianZ

The spec. around lazy loading steps current reads like this:

The will lazy load image steps, given an img element img, are as follows:

  1. If scripting is disabled for img, return false.

Note: This is an anti-tracking measure, because if a user agent supported lazy loading when scripting is disabled, it would still be possible for a site to track a user's approximate scroll position throughout a session, by strategically placing images in a page's markup such that a server can track how many images are requested and when.

I get the point about having a way to disable this feature in order to avoid tracking. I am wondering, though, whether lazy loading of images should really be bound to scripting being enabled or not. What if a user agent does not support scripting? What if a user has scripting disabled for other reasons than as anti-tracking measure, e.g. to save bandwidth? What if a user generally doesn't want to be tracked but may still want to accept lazy loading to save bandwidth (accepting to be potentially tracked through this matter)?

Therefore I think the option to disable lazy loading should be made independent of whether scripting is enabled or not. User agents should still be requested to provide an option to disable it, though the implementation should be up to them.

Sebastian

Metadata

Metadata

Assignees

No one assigned

    Labels

    privacy-trackerGroup bringing to attention of Privacy, or tracked by the Privacy Group but not needing response.security/privacyThere are security or privacy implicationstopic: img

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions