Is it possible to detect if a browser supports HTTP Client Hints using javascript? Right now only chrome appears to support it: http://caniuse.com/#feat=client-hints-dpr-width-viewport
So I was thinking of using some javascript library that can do browser and version detection and if the browser is chrome and version 49 or later than I could assume the feature was supported.
I'm just thinking this solution isn't very efficient or smart considering functionality for HTTP Client Hints will most likely be added to more browsers in the future and then I would have to continually update my function to reflect that.
Is there some simple way to just test if a given browser supports HTTP Client Hints with client side javascript?
Thanks!