Skip to content

Client Hints

Pre-release
Pre-release
Compare
Choose a tag to compare
@jonesiscoding jonesiscoding released this 26 Sep 16:54
· 3 commits to v5.x-dev since this release
04ed07a

With the v5 release, this library has adopted the concept of "Client Hints" and can act as a polyfill for official Client Hints, as well as add non-standard client hints for feature detection and other uses.

Other changes include:

  • Browser feature detection from CanIUse data
  • Improved pointer detection for hybrid devices
  • Configurable feature detection via JSON and adding your own classes
  • Configurable bot detection
  • Configurable "minimum feature set" for devices
  • Can provide mod_rewrite directives to automatically populate hints based on values from cookies or other hints.

This is a testing release, with additional documentation forthcoming.