4 ms·
browser feature detection is the way grown up developers have been doing this for several years now. user agent sniffing is dumb because it bundles a ton of ass
by ohthehugemanate 7y ago
browser feature detection is the way grown up developers have been doing this for several years now. user agent sniffing is dumb because it bundles a ton of assumptions with a high upkeep requirement, all wrapped up in an unreadable regex. It's been bad practice for ages; I'd be surprised if that's how Amazon is doing it still.
- leeoniya 7y ago> browser feature detection is the way grown up developers have been doing this for several years now. and how do these grown up developers feature-detect when js is disabled? or are they too "grown up" to deal with anything but the ideal scenario? > I'd be surprised if that's how Amazon is doing it still. why don't you go there and open up your "grown up developer" devtools.
- gowld 7y agoIf your site doesn't use JS, you don't need features. Just use responsive HTML.
- Rebelgecko 7y agoHow do you handle browsers that render HTML differently?