3 ms·
Who still does user-agent sniffing? I can't remember the last time I saw UA-detection code. Feature-detection and polyfills have been a thing for more than a de
by emilecantin 7y ago
Who still does user-agent sniffing? I can't remember the last time I saw UA-detection code. Feature-detection and polyfills have been a thing for more than a decade at this point.
EDIT: Just for kicks, I'll try it. I just downloaded a User-Agent extension, and I'll set my UA to "Chrome 74", and see if anything breaks.
- jefftk 7y agoI was working on a product that did user-agent sniffing to figure out which image formats were supported (when to serve WebP). A feature-detection based approach is substantially slower because it breaks the preload scanner: https://www.jefftk.com/p/why-parse-the-user-agent https://www.jefftk.com/p/why-parse-the-user-agent
- Dylan16807 7y agoThat was true in 2014! But since 2015 we've had the <picture> element to pick different versions of an image based on screen or capability.
- emilecantin 7y agoAfter almost a day, the only website that broke is Netflix; they send me to a help page about the browsers they support.