4 ms·
Good comment, triggers a bunch of associations: 1. the rule of thumb to prefer feature detection to user-agent sniffing is generally a reasonable one, BUT if y
by chrisweekly 9y ago
Good comment, triggers a bunch of associations:
1. the rule of thumb to prefer feature detection to user-agent sniffing is generally a reasonable one, BUT if you have something like WURFL to map UA to device (and device to capabilities) then the one-time, up-front lookup can be a better choice.
2. that said I remember using yepnope.js, and sharing this hilarious (because accurate) post on the history of the user-agent: http://webaim.org/blog/user-agent-string-history/ http://webaim.org/blog/user-agent-string-history/
hard to believe it's been almost 20 years since I started messing with HTML...