Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Client hint capturing viewing distance #29

Open
eeeps opened this issue Jun 5, 2023 · 0 comments
Open

Client hint capturing viewing distance #29

eeeps opened this issue Jun 5, 2023 · 0 comments

Comments

@eeeps
Copy link
Collaborator

eeeps commented Jun 5, 2023

Devices increasingly have sensors telling them how far away the user is from the screen. This is encoded in a very general, one-size-fits way by how the user-agent decides to define 1px, hopefully somewhat matching the reference pixel most of the time for most users. But not always, of course, and when that viewing distance is greater than expected, there are opportunities to send lower-resolution, faster-to-load image resources.

Maybe Sec-CH-1px-Visual-Angle with a value in arcminutes or degrees or whatever.

Maybe Sec-CH-Reference-Pixel-Ratio = the actual visual angle occupied by 1px at the user's current viewing distance / 0.0213 degrees (would slightly simplify some math).

We would need this exposed in a JS API first, of course.

It seems fairly variable over time (reducing fingerprinting risk), although until most devices could send it, the presence of a value or a value other than the default could be used to fingerprint.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant