?
avatar brianteeman
brianteeman
12 Feb 2021

On a clean install I am seeing both the es5 and the min version of the joomla-alert javascript being loaded

image

cc @Fedik @dgrammatiko

avatar brianteeman brianteeman - open - 12 Feb 2021
avatar joomla-cms-bot joomla-cms-bot - change - 12 Feb 2021
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 12 Feb 2021
avatar dgrammatiko
dgrammatiko - comment - 12 Feb 2021

Expected, modern browsers will load the type=module and older browsers the nomodule. The same pattern is also repeated for Bootstrap components and there's a PR #32315 to move all the rest js scripts to use this pattern (the type=module is es6+).

avatar brianteeman brianteeman - change - 12 Feb 2021
Status New Closed
Closed_Date 0000-00-00 00:00:00 2021-02-12 11:56:01
Closed_By brianteeman
avatar brianteeman
brianteeman - comment - 12 Feb 2021

Thanks for the explanation - learnt something new. Might be worth documenting this as I am sure it will come up again.

avatar brianteeman brianteeman - close - 12 Feb 2021

Add a Comment

Login with GitHub to post a comment