- Sep 2023
- Jul 2023
-
github.com github.com
-
datatracker.ietf.org datatracker.ietf.org
-
developer.chrome.com developer.chrome.com
-
html <meta http-equiv="Accept-CH" content="DPR, Viewport-Width, Width"> ... <picture> <!-- serve WebP to Chrome and Opera --> <source media="(min-width: 50em)" sizes="50vw" srcset="/image/thing-200.webp 200w, /image/thing-400.webp 400w, /image/thing-800.webp 800w, /image/thing-1200.webp 1200w, /image/thing-1600.webp 1600w, /image/thing-2000.webp 2000w" type="image/webp"> <source sizes="(min-width: 30em) 100vw" srcset="/image/thing-crop-200.webp 200w, /image/thing-crop-400.webp 400w, /image/thing-crop-800.webp 800w, /image/thing-crop-1200.webp 1200w, /image/thing-crop-1600.webp 1600w, /image/thing-crop-2000.webp 2000w" type="image/webp"> <!-- serve JPEGXR to Edge --> <source media="(min-width: 50em)" sizes="50vw" srcset="/image/thing-200.jpgxr 200w, /image/thing-400.jpgxr 400w, /image/thing-800.jpgxr 800w, /image/thing-1200.jpgxr 1200w, /image/thing-1600.jpgxr 1600w, /image/thing-2000.jpgxr 2000w" type="image/vnd.ms-photo"> <source sizes="(min-width: 30em) 100vw" srcset="/image/thing-crop-200.jpgxr 200w, /image/thing-crop-400.jpgxr 400w, /image/thing-crop-800.jpgxr 800w, /image/thing-crop-1200.jpgxr 1200w, /image/thing-crop-1600.jpgxr 1600w, /image/thing-crop-2000.jpgxr 2000w" type="image/vnd.ms-photo"> <!-- serve JPEG to others --> <source media="(min-width: 50em)" sizes="50vw" srcset="/image/thing-200.jpg 200w, /image/thing-400.jpg 400w, /image/thing-800.jpg 800w, /image/thing-1200.jpg 1200w, /image/thing-1600.jpg 1600w, /image/thing-2000.jpg 2000w"> <source sizes="(min-width: 30em) 100vw" srcset="/image/thing-crop-200.jpg 200w, /image/thing-crop-400.jpg 400w, /image/thing-crop-800.jpg 800w, /image/thing-crop-1200.jpg 1200w, /image/thing-crop-1600.jpg 1600w, /image/thing-crop-2000.jpg 2000w"> <!-- fallback for browsers that don't support picture --> <img src="/image/thing.jpg" width="50%"> </picture>
-
-
developer.chrome.com developer.chrome.com
-
```js // Log the full user-agent data navigator .userAgentData.getHighEntropyValues( ["architecture", "model", "bitness", "platformVersion", "fullVersionList"]) .then(ua => { console.log(ua) });
// output { "architecture":"x86", "bitness":"64", "brands":[ { "brand":" Not A;Brand", "version":"99" }, { "brand":"Chromium", "version":"98" }, { "brand":"Google Chrome", "version":"98" } ], "fullVersionList":[ { "brand":" Not A;Brand", "version":"99.0.0.0" }, { "brand":"Chromium", "version":"98.0.4738.0" }, { "brand":"Google Chrome", "version":"98.0.4738.0" } ], "mobile":false, "model":"", "platformVersion":"12.0.1" } ```
Tags
- cito:cites=urn:ietf:rfc:8942
- http:header=sec-ch-ua-platform-version
- wikipedia:en=HTTP_Client_Hints
- <meta http-equiv="accept-ch"/>
- http
- http:header=sec-ch-ua-model
- conneg
- http:header=sec-ch-ua-platform
- http:header=sec-ch-ua-full-version
- http:header=sec-ch-ua
- http:header=sec-ch-ua-mobile
- cito:cites=urn:ietf:rfc:1945
- mobile
- http:header=sec-ch-ua-bitness
- http:header=sec-ch-ua-full-version-list
- http:header=accept-ch
- http:header=sec-ch-ua-arch
- js
- http:header=user-agent
Annotators
URL
-
-
developer.mozilla.org developer.mozilla.org
-
- Note: Client hints can also be specified in HTML using the <meta> element with the
http-equiv
attribute.
html <meta http-equiv="Accept-CH" content="Width, Downlink, Sec-CH-UA" />
- Example:
http HTTP/1.1 200 OK Content-Type: text/html Accept-CH: Sec-CH-Prefers-Reduced-Motion Vary: Sec-CH-Prefers-Reduced-Motion Critical-CH: Sec-CH-Prefers-Reduced-Motion
- Note: Client hints can also be specified in HTML using the <meta> element with the
Tags
- cito:cites=urn:ietf:rfc:8942
- http:header=sec-ch-prefers-reduced-motion
- wikipedia:en=HTTP_Client_Hints
- <meta http-equiv="accept-ch"/>
- http
- mobile
- http:header=vary
- cito:cites=urn:ietf:id:draft-davidben-http-client-hint-reliability
- http:header=accept-ch
- conneg
- http:header=critical-ch
Annotators
URL
-
-
wicg.github.io wicg.github.io
-
```idl dictionary NavigatorUABrandVersion { DOMString brand; DOMString version; };
dictionary UADataValues { DOMString architecture; DOMString bitness; sequence<NavigatorUABrandVersion> brands; DOMString formFactor; sequence<NavigatorUABrandVersion> fullVersionList; DOMString model; boolean mobile; DOMString platform; DOMString platformVersion; DOMString uaFullVersion; // deprecated in favor of fullVersionList boolean wow64; };
dictionary UALowEntropyJSON { sequence<NavigatorUABrandVersion> brands; boolean mobile; DOMString platform; };
[Exposed=(Window,Worker)] interface NavigatorUAData { readonly attribute FrozenArray<NavigatorUABrandVersion> brands; readonly attribute boolean mobile; readonly attribute DOMString platform; Promise<UADataValues> getHighEntropyValues (sequence<DOMString> hints ); UALowEntropyJSON toJSON (); };
interface mixin NavigatorUA { [SecureContext] readonly attribute NavigatorUAData userAgentData ; };
Navigator includes NavigatorUA; WorkerNavigator includes NavigatorUA; ```
Tags
- cito:cites=urn:ietf:rfc:8942
- http:header=sec-ch-ua-platform-version
- wikipedia:en=HTTP_Client_Hints
- http
- http:header=sec-ch-ua-form-factor
- http:header=sec-ch-ua-model
- conneg
- http:header=sec-ch-ua-platform
- http:header=sec-ch-ua-full-version
- http:header=sec-ch-ua
- http:header=sec-ch-ua-mobile
- mobile
- http:header=sec-ch-ua-wow64
- http:header=sec-ch-ua-bitness
- http:header=sec-ch-ua-full-version-list
- http:header=accept-ch
- http:header=sec-ch-ua-arch
- http:header=user-agent
Annotators
URL
-
- Jun 2023
-
www.cs.vu.nl www.cs.vu.nl
Tags
Annotators
URL
-
- Apr 2023
-
developer.mozilla.org developer.mozilla.org
- Feb 2023
-
citation.crosscite.org citation.crosscite.org
Tags
Annotators
URL
-
- Sep 2016
- May 2014
-
aspen.io aspen.io
-
Negotiated
Content Negotiation has finally come of age! More frameworks should make this as "native" as Aspen does.
-