I noticed w:User:BrandonXLF/MoreDiffInfo.js uses Moment.js, by loading it as executable script from a third-party domain (momentjs.com). I was wondering whether you considered loading the built-in module that comes with the wiki software, and if so, what problem or inconvience you may encountered so that we could mitigate it.
My interest is primarily from the perspective of providing a platform that's easy to work with for script authors such as yourself (by maintaining mw:ResourceLoader), and in relation to CSP support (T208188) which is likely to provide an opt-out for API requets but I don't currently expect us to allow executable scripts. Understanding current examples of third-party executable scripts helps to prioritise what we need to improve before such restriction comes into effect. --Krinkle (talk) 14:12, 4 May 2022 (UTC)
- @Krinkle I guess my issue was that I didn't realize there was a built in module when I created the script. I've now updated the script to use the built-in module. Is there a list of built in modules that I didn't notice somewhere? Currently I have to look through the core Resources.php and the extension.json for extensions, but an actual page with a list would be really helpful. BrandonXLF (talk) 15:01, 4 May 2022 (UTC)