J4 Issue
avatar wilsonge
wilsonge
13 Sep 2018

Steps to reproduce the issue

From the conversation in #22100 there are several ways to attach a polyfill

  1. Server side browser detection to insert the js file
  2. Client side browser detection to insert the js file (I believe the way that @dgrammatiko preferred)
  3. Always include the JS but bail early we don't need to patch

Disadvantages of each:

  1. If there are proxies in front then server detection can fail. Practically given most the polyfills are IE and most IE usage is in corporates with proxies this could be significant
  2. Including other JS files with javascript isn't very clean (but guarantees support added where required)
  3. Means the JS file is always loaded increasing page load time of first page load.
avatar wilsonge wilsonge - open - 13 Sep 2018
avatar franz-wohlkoenig franz-wohlkoenig - change - 4 Mar 2019
Status New Discussion
avatar franz-wohlkoenig franz-wohlkoenig - change - 29 Mar 2019
Category JavaScript
avatar brianteeman
brianteeman - comment - 10 Jun 2019

@wilsonge is this still relevant now ie11 support is dropped?

avatar dgrammatiko
dgrammatiko - comment - 10 Jun 2019

Polyfills are still very relevant in the ESxxxx land so this still needs to be addressed

avatar jwaisner jwaisner - change - 19 Mar 2020
Status Discussion Confirmed
Build master 4.0-dev
avatar brianteeman
brianteeman - comment - 2 Aug 2021

@wilsonge is this still relevant. If it is then shouldnt it be addressed right now. Otherwise please close

avatar dgrammatiko
dgrammatiko - comment - 2 Aug 2021

This is still relevant. The missing polyfill is one tiny file: https://www.npmjs.com/package/dom4 but also we NEED to review the ES5 files (or just remove them as right now they are not functional AFAIK)

About the loading: is far easier, just load the js with a nomodule attribute and without any defer/async. Make sure that is in the dependencies in the WAM. That's it, no sniffing no extra processing...

avatar brianteeman
brianteeman - comment - 2 Aug 2021

so this should be marked as a release blocker

avatar dgrammatiko
dgrammatiko - comment - 2 Aug 2021

so this should be marked as a release blocker

Depends on the severity of IE11 support

avatar dgrammatiko
dgrammatiko - comment - 26 Jan 2022

The ie poly fills are irrelevant so this can be closed @richard67

avatar richard67 richard67 - close - 26 Jan 2022
avatar richard67
richard67 - comment - 26 Jan 2022

Closing for reason stated in the previous comment.

avatar richard67 richard67 - change - 26 Jan 2022
Status Confirmed Closed
Closed_Date 0000-00-00 00:00:00 2022-01-26 20:00:02
Closed_By richard67

Add a Comment

Login with GitHub to post a comment