'Turning off the async attribute in MediaWiki resource loader script tag
Solution 1:[1]
I solved this by copying the structure of a jQuery dependency in resources/Resources.php with the resource I wanted to include and uploaded the .js file to the specified folder.
Then added the following code to LocalSettings.php:
$wgHooks['BeforePageDisplay'][] = function( OutputPage &$out, Skin &$skin ) {
$out->addModules('mymodule');
return true;
};
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Zach Jensz |

