Michael added a comment.
> 1. Figure out a way to detect ES6 (using JS) There is a way we can leverage ResourceLoader logic for this! ResourceLoader has a "module registry" (`mw.loader.moduleRegistry`) that lists all available modules. However, it lists `"es6" => true` modules only if ES6 is actually available in the browser. Therefore we can do: if (mw.loader.moduleRegistry['wikibase.lexeme.special.NewLexemeAlpha'] === undefined) { // replace our `<noscript>` tags with their contents here! } TASK DETAIL https://phabricator.wikimedia.org/T311157 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Michael Cc: ItamarWMDE, Aklapper, Michael, Astuthiodit_1, karapayneWMDE, Invadibot, maantietaja, Akuckartz, Nandana, Lahi, Gq86, GoranSMilovanovic, Mahir256, QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, Wikidata-bugs, aude, Mbch331
_______________________________________________ Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org