https://bugzilla.wikimedia.org/show_bug.cgi?id=43905

--- Comment #4 from Krinkle <krinklem...@gmail.com> ---
(In reply to comment #3)
> Even the following doesn't seem to work:
> 
>   $wgResourceModules['ext.abc'] = array(
>     'loaderScripts' => 'extensions/abc-loader.js',
>   );
> 
>   $wgResourceModules['ext.abc.use'] = array(
>     'dependencies' => 'ext.abc',
>   );

That's no different then the previous case. The module wasn't loadable because
it isn't registered (this is something your custom startup module needs to do,
which it can as it is given the name). So it can't be referred to anywhere
unless it is registered by your startup module.

I'm not sure why you are implementing a custom startup module, but if you are
you need to do take care of a lot of logic. It is a very low level hook.

Also, note that just because this runs from the startup module, that doesn't
mean it will finish before common.js.

So whatever you're loading, it will not be reliably be available for whatever
you do in Common.js.

Use async dependencies (mw.loader.using(..., callback), jQuery.getScript(..,
callback);) instead and in place where you use them, not globally.

-- 
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
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to