OutputPage::addScript()
Fragment of a discussion from Project:Support desk
The extension hasn't been updated in a long while. It needs to be updated to use ResourceLoader.
Note that calling javascript inline is a bad practice in general.
- Quick fix: Port to ResourceLoader and set
'position' => 'top'in the module for it to load in the<head> - Proper long term fix: Port to ResourceLoader and don't use onclick-attributes from HTML, but bind them from the JS files