OutputPage::addScript()

Fragment of a discussion from Project:Support desk
Jump to: navigation, search

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
Krinkle00:25, 11 November 2011
Personal tools

Variants
Actions
Navigation
Support
Download
Development
Communication
Toolbox