Unobtrusive JavaScript: Now it has come to this!

[quote=“ralphm, post:30, topic:224661, full:true”]
However—apart from the varying support for JS in different browsers (a minor issue these days, really)—[/quote]

It’s more than a minor issue when it comes to ES6 and beyond.

Support for many features is vary flaky. When providing a reliable experience is important, you may be tempted to transpile from ES6 down to more widely supported ES5 code. I came across this with developers just yesterday. They were using only a subset of ES6 code that was capable of being transpiled down, and even worse, they weren’t actually ending up using ES6, due to it being transpiled down to ES5 code. It become an emporer’s new clothes situation, for what you think of as ES6 really ends up being nothing more than ES5 instead.

Perhaps a bit too much ES5/ES6 stuff there, but browser support when it comes to ES6 is more of a problem now than we’ve had to deal with over the past five years.

1 Like