i experienced breaking changes when loading scripts in the widgets
extension through the resource loader. please check the gitlab snippet
 i created. i did not find any documentation and checked the
migration guide .
is the code presented in the gitlab snippet good practice? could anyone
point me to existing documentation?
You probably don't have many other options if you are using the Widgets
On Thu, Apr 4, 2019 at 4:08 PM Bartosz Dziewoński <[hidden email]>
> Best practice is to use the PHP methods which generate the required
> wrappers. Have a look at ResourceLoader::makeLoaderConditionalScript()
> and ResourceLoader::makeInlineCodeWithModule().
> Alternatively, if it's possible, it is ideal to put the initialization
> code into another module and load it with addMobules() etc. as usual,
> instead of inlining the code in the HTML source.
> Bartosz Dziewoński
> Wikitech-l mailing list
> [hidden email] > https://lists.wikimedia.org/mailman/listinfo/wikitech-l