-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Description
The spec. around lazy loading steps current reads like this:
The will lazy load image steps, given an img element img, are as follows:
- 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