Drop ES5 Javascript Files #35737
Replies: 3 comments 2 replies
-
s/Amother/Another Possibly better placed in https://github.com/joomla/rfc ? |
Beta Was this translation helpful? Give feedback.
-
I still stand by my original discussion that ES5 should be dropped. I don't think it's appropriate for Joomla 4 to output ES5 but not test it. Joomla 4 either supports ES5 or it doesn't. Pick 1. IE11 is dead. Microsoft doesn't support it and now Google search doesn't support it. WP also doesn't support it. Joomla 4 should just output ES6. |
Beta Was this translation helpful? Give feedback.
-
I guess we have to decide which minimum Safari browser we do support. If we drop, then iOS versions < 11 will also not be supported anymore. |
Beta Was this translation helpful? Give feedback.
-
Another request for the Production Team/Maintainers
Current state
IE11 was never supposed to be supported in Joomla 4.x mainly because the decision to move to Bootstrap 5 made this impossible. At the time @wilsonge and I worked on the Bootstrap 5 I also did a bunch of PRs to introduce
type="modules"
/nomodule
attributes that allowed the CMS to deliver modern Javascript but also retain the option to deliver ES5 (code compatible with IE11) as a solution to this discussion: #32148. The solution was a compromise for the time as the project wanted to provide working javascript files for anyone that wanted to build something that could support IE11. The problem is that the ES5 files were:Current WEB state
This year most of the most known WEB entities already publicly declared that they stop supporting IE11, starting with Microsoft itself and their flagship Office 365. Lately, Google made a similar announcement but, and this is the interesting part here, WP dropped support on May 2021: https://wordpress.org/news/2021/05/dropping-support-for-internet-explorer-11/
The request
What I'm requesting here is a decision from the PT that either:
If the decision is in favour of dropping the ES5 javascript files, there will be a few build tool files that will need some patching and then the
joomla.assets.json
files where we need to drop the dependencies to ES5 (the way we end up shippingtype=module/nomodule
. Also, the package will get thinner as a lot of files will be removed from the zip files.This could be done only on a minor version, so basically the decision should be targeted for v4.1
Beta Was this translation helpful? Give feedback.
All reactions