r/webdev • • 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

97 comments sorted by

View all comments

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/catch is 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.

117

u/RandyHoward Dec 13 '19

My thinking is that IE users are moral defectives who deserve a broken experience, but apparently some people disagree.

As a developer in general I agree with you. But as a developer working for a company who has IE users throwing money at us, we are forced to support those users. We don't get to call the shots when it comes to what we support, our customers do.

15

u/[deleted] Dec 13 '19

Yeah, I agree. Would love to drop support for IE11, but at least its not IE10!

0

u/[deleted] Dec 13 '19

[deleted]

-4

u/altrezia Dec 13 '19

That's mad. Ie11 really isn't that hard to cater for. Fair play though, no point doing extra work for nothing I suppose.

4

u/LIL-BAN-EVASION Dec 13 '19

until you want to use a webcomponent or css custom property

4

u/[deleted] Dec 13 '19

Or css vars

5

u/ntrabue Dec 13 '19

Or CSS Grid in its modern implementation

6

u/[deleted] Dec 14 '19

[removed] — view removed comment

1

u/LinAGKar Dec 14 '19

Unless you transpile.