3 ms·
> async/await, classes, arrow functions, etc. However, despite the fact that all modern browsers can run ES2015+ code and natively support the features I just m
by deathanatos 9y ago
> async/await, classes, arrow functions, etc. However, despite the fact that all modern browsers can run ES2015+ code and natively support the features I just mentioned
What is everyone's cutoff for de-supporting a browser? According to caniuse.com[1], >30% of browsers don't support the mentioned feature-set; that seems like … a lot.
(<script type="module"> is listed at 60% unsupported, which seems very high, but his point that if you allow it, you should allow everything else mentioned seems sound. I also heavily agree w/ his point about delivering modern JS, and letting end consumers transpile as needed.)
[1]: https://caniuse.com/#feat=async-functions https://caniuse.com/#feat=async-functions
- rayshan 9y agoIf not supporting IE, a good gauge is evergreen browsers (Chrome, Firefox, Edge) and Safari going back 2 major versions. This means supporting 2 years of Safari 9.x and 10.x as of today. macOS doesn't upgrade as often as evergreen browsers.
- timdorr 9y agoSafari 11 just came out this week, so you can drop 9.x soon.
- robocat 9y agoNote many older Apple devices are stuck on iOS9 or iOS10 - a good list is here: http://www.everyi.com/by-capability/maximum-supported-ios-version-for-ipod-iphone-ipad.html http://www.everyi.com/by-capability/maximum-supported-ios-ve... So it depends a little upon your user demographic (or whether you want to keep supporting users or companies that can’t afford to upgrade their device).
- timdorr 9y agoAlso keep in mind that in addition to limited language feature support, many of those older devices have limited performance capabilities as well. So, while you may be able to get your code to run on them, it might not be a great experience and of limited value to your customers to even try offering support.
- baybal2 9y agoWe consulted two eCommerce companies into dropping Safari support as such. During AB tests, sales actually went up
- robin_reala 9y agoOn GOV.UK: take the most used browser from the stats, then add on the next most used and repeat until you get to 95% of the total. At that point start looking at ease of support. Typically browsers will be dropped from the testing list at ~0.4%, unless there’s a security need to remove support.
- robin_reala 9y agoForgot to link to the page on GOV.UK with that method and the current set of recommended browsers: https://www.gov.uk/service-manual/technology/designing-for-different-browsers-and-devices#browsers-to-test-in https://www.gov.uk/service-manual/technology/designing-for-d...