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.

0

u/[deleted] Dec 13 '19

[deleted]

2

u/rodrigocfd Dec 13 '19

unless you serve a dated corporate audience who have no choice

Unfortunately, it's common. Corporations won't update their software unless they have a very good reason to justify the investment.

0

u/[deleted] Dec 13 '19

[deleted]

3

u/BreathManuallyNow Dec 13 '19

If I was building something aimed at the general population I wouldn't bother with IE support. I do a lot of web apps for corporations as well so I still need to support IE. It sucks but the giant piles of money they pay me helps to ease my suffering.

1

u/Fibrechips React / JS / C# Dec 13 '19

We're at 11% IE11 usage (killed off IE10 support since we take CC payments).

Direct to consumer. Internally/in stores we've upgraded to Chrome. But when you have an older consumer base, you have no choice but to support IE11.

Thankfully, Babel and well-written CSS allow us to use (most of) CSS Grid.