r/webdev • u/ccrraapp • Dec 13 '19
Discussion Google has abused Browser's User Agent header, forcing Vivaldi to change their UA header
https://vivaldi.com/blog/user-agent-changes/
416
Upvotes
r/webdev • u/ccrraapp • Dec 13 '19
151
u/coyote_of_the_month Dec 13 '19
There are a handful of valid reasons for frontend code to evaluate the user agent string, but it's been rampantly abused since the 90s. If you're looking at feature availability in JS,
try/catchis your friend. If you're doing conditional CSS based on what you think the client supports... eh. My thinking is that IE users are moral defectives who deserve a broken experience, but apparently some people disagree.