User talk:BrandonXLF
Add topicWelcome to Meta!
[edit]Hello, BrandonXLF. Welcome to the Wikimedia Meta-Wiki! This website is for coordinating and discussing all Wikimedia projects. You may find it useful to read our policy page. If you are interested in doing translations, visit Meta:Babylon. You can also leave a note on Meta:Babel or Wikimedia Forum if you need help with something (please read the instructions at the top of the page before posting there). Happy editing!
-- Meta-Wiki Welcome (talk) 11:57, 10 October 2014 (UTC)
momentjs
[edit]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)
- Awesome. In terms of documentation, an (incomplete) list lives at mw:ResourceLoader/Core_modules. I've just added
moment
to it. Krinkle (talk) 16:08, 4 May 2022 (UTC)
- Awesome. In terms of documentation, an (incomplete) list lives at mw:ResourceLoader/Core_modules. I've just added