这是indexloc提供的服务,不要输入任何密码
Skip to content

Provide a list of all supported client hints #298

@jridgewell

Description

@jridgewell

Similar to PerformanceObserver.supportedEntryTypes, I'm looking for a programatic way to collect a list of all supported client hints that could be requested from getHighEntropyValues.

In Terser, we reserve a list of known keys when mangling so that most users won't have to do any special configuration in order to work with the DOM APIs. Without a list of known client hints (which are used as keys in the return object from getHighEntropyValues, we're stuck maintaining a hardcoded list of current hints. This list is guaranteed to go out of date with new additions, so I'd like to get this maintained as part of the official DOM API.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions