https://bugzilla.wikimedia.org/show_bug.cgi?id=43905
Web browser: ---
Bug ID: 43905
Summary: ResourceLoader breaks when loaderScripts is used
Product: MediaWiki
Version: 1.19.3
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: ResourceLoader
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected]
Classification: Unclassified
Mobile Platform: ---
In LocalSettings.php:
$wgResourceModules['ext.abc'] = array(
'loaderScripts' => 'extensions/abc-loader.js',
);
In extensions/abc-loader.js:
mw.loader.load("//example.com/js/sample.js");
In [[MediaWiki:Common.js]]:
mw.loader.load( 'ext.abc', function() {
console.log("works!");
}
When I load a page, I can see sample.js is loaded, so ext.abc is defined at
some time. However the browser's console shows:
Error: Unknown dependency: ext.abc
--
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l