4 ms·
Browser sniffing falls in the same category as time, crypto, and string encoding for me. If you think it's easy, you haven't spent enough time thinking about it
by reificator 9y ago
Browser sniffing falls in the same category as time, crypto, and string encoding for me. If you think it's easy, you haven't spent enough time thinking about it.
- lallysingh 9y agoA few seconds of googling found quite a few prebuilt results. First one: https://github.com/faisalman/ua-parser-js https://github.com/faisalman/ua-parser-js It doesn't have to be trivial to be worth doing.
- reificator 9y agoDirect from the README of the linked library: > However, it's not recommended to use this library as browser detection since the result may not accurate than using feature detection.