News for hackers. Stuff that matters.
Re:Onedrive is slow on Linux but fast with a “Windows” user-... by robocat on Wednesday March 22, 2017 @03:48PM (#13934164)
> No company should _ever_ use user-agents for feature detection

Wrong.

There are plenty of bugs that cannot be detected using feature detection, especially with events and <input> elements. Sometimes you can find a browser-agnostic workaround, but sometimes the only solution is to sniff the browser.

It is especially necessary if you need to support "obsolete" browsers that your customers still use.

It is important to really try and avoid browser sniffing when "fixing" bugs in current versions of browsers (since your "fix" is likely to break in future versions).

Note, feature detection usually implies that you are using JavaScript.

There are no comments on this comment yet.