3 ms·
Does anyone know of (or work on) an app still doing user-agent sniffing to determine browser features (as in, the sniffing code has been touched in the last ~de
by gregmac 4y ago
Does anyone know of (or work on) an app still doing user-agent sniffing to determine browser features (as in, the sniffing code has been touched in the last ~decade)? If so, why do it that way?
- oefrha 4y agoUser agent sniffing is still a very typical way to determine whether to send the mobile or desktop version of a site.
- rikschennink 4y agoI do. Lots of `isIOS` and `isSafari` tests in my code. Safari 15 for example cannot correctly apply orientation metadata, and will choke on very big images when using `createImageBitmap` in a thread. No way to find out. I could probably detect the orientation issue with a small dataURI of an image, but the big image issue is more difficult.