Topic on Talk:ResourceLoader/Migration guide (users)

loadedScripts - redundant

5
MarMi wiki (talkcontribs)

What does that exactly mean? What does it duplicate (what to use instead)?

Peter Bowman (talkcontribs)

As far as I can tell, it has been superseded by mw.loader.

MarMi wiki (talkcontribs)

So where does mw.loader stores external script url/names loaded by load or getScript?

Peter Bowman (talkcontribs)
  • mw.loader.load('url') -> check $('script')
  • mw.loader.getScript() -> this calls $.getScript() internally, which if I'm correct (SO) leaves no trace of the original URL in the HTML
MarMi wiki (talkcontribs)

Thanks.

I've chosen to test if desired object/function exists to decide if the library is loaded or not.

Reply to "loadedScripts - redundant"