I have written my extension when I use 1.20, and there is some Javascript in the code, for example
<?php
class Example
{
public static function onBeforePageDisplay( OutputPage &$out, Skin &$skin )
{
echo '<script>';
echo '$(function() { console.log("test") });'
echo '</script>';
}
It works perfectly in 1.20, but after I upgrade MediaWiki to 1.25, I got message jQuery is not defined(…), I am pretty sure jQuery is loaded, because I type $('body').length on console panel, it returns 1, how to fix it?