Topic on Project:Support desk

Can't access mw.config from js file

2
52.9.166.178 (talkcontribs)

I can't access the mw.config object from my javascript file (all.js). I have it included in MediaWIki:Common.js as follows:

/* Any JavaScript here will be loaded for all users on every page load. */

mw.loader.load('/mediawiki/resources/all.js');
52.9.166.178 (talkcontribs)

Actually, I seems I now can? Must have been a caching issue. Apologies for the spam :)