Re: [Wikitech-l] ResourceLoader: modifying dependencies dynamically?

2015-01-27 Thread Krinkle
On 15 Jan 2015, at 09:29, Daniel Barrett wrote: > I have an extension that affects wiki tables using JavaScript. In order for > it to work, I need it to load *before* one of the core JS modules, > jquery.tablesorter. > Is there a supported way to modify the ResourceLoader dependencies of > jqu

Re: [Wikitech-l] ResourceLoader: modifying dependencies dynamically?

2015-01-15 Thread Daniel Barrett
Thanks for the suggestion to use position=top. I'll try that. DanB My email address has changed to d...@cimpress.com. Please update your address book. Cimpress is the new name for Vistaprint NV, the world’s leader in mass customization. Read more about Cimpres

Re: [Wikitech-l] ResourceLoader: modifying dependencies dynamically?

2015-01-15 Thread Bartosz Dziewoński
It's not "supported", but I see no reason why it couldn't work. You'd probably want to do it from the ResourceLoaderRegisterModules hook (which is fired after core modules are registered). Also, $moduleInfos is protected (because you're not supposed to modify it :D), so you'd have to cheat

[Wikitech-l] ResourceLoader: modifying dependencies dynamically?

2015-01-15 Thread Daniel Barrett
I have an extension that affects wiki tables using JavaScript. In order for it to work, I need it to load *before* one of the core JS modules, jquery.tablesorter. Is there a supported way to modify the ResourceLoader dependencies of jquery.tablesorter? Effectively I want to do something like: