I have a small script like this: <script data-leadbox="foo1" data-url="foo2" data-config="foo3" type="text/javascript" src="https://foo4.com/script.js"></script>
I know in Common.js I can load a script via mw.loader.load('https://foo4.com/script.js");
.
But how do I add the data
attributes to my code?
I tried things like
data-leadbox="foo1"; data-url="foo2"; data-config="foo3"; mw.loader.load('https://foo4.com/script.js");
but this doesn't work.