MDN-Browser-Compatibility-Report-2020

Probably yesterday. Because we are supporting Internet Explorer 11, it limits the amount of modern JavaScript we can use. We relied on jQuery for many years, and it's still in our main codebase. It's only been a few months that I've been switching to write everything new in vanilla JavaScript. We haven't refactored it out of our site, but we're removing things, like, we don't, we just got rid of Modernizr, and we had a text truncation plugin called dot-dot-dot that I just coded a replacement for this week. So that'll drop later this month. So we're making strides to reduce the amount of code that we have to send the browsers. So I'm dealing with new things that are "old hat" for most people, but I didn't realize that if you have an element and use classlist.add{), you can't add two classes at the same time in Internet Explorer 11. So I ran into that recently, I said "Why isn't this class showing? Well, it's because it doesn't support multiple classes at the same time."

Did others support that OK?

Yeah, and I haven't done anything with ES6 at all, I'm just trying to get going with vanilla JavaScript that's going to work in IE. I haven't found it incredibly difficult, but some people on our team do often use ES6 and transpile it for older browsers. And that's fine, but so far it's only been on these isolated projects and tools that are maybe on one page of the site. But the overall site, thousands and thousands of pages, I just don't feel comfortable changing the process from using the file that runs. We could build it into our build script that compiles... like we have Sass for CSS and it compiles and builds the code and pushes it to the server. But we just haven't prioritized that. Unfortunately, we had a problem with the recording of this interview after the first topic, and couldn't transcribe the rest. We did take notes, however, so the feedback was not lost and is included in aggregate numbers elsewhere in this report.

Participant 11

JavaScript

Recent JavaScript issues?

Made with FlippingBook - professional solution for displaying marketing and sales documents online