Index: trunk/phase3/includes/OutputPage.php |
— | — | @@ -2340,13 +2340,10 @@ |
2341 | 2341 | // Modules - let the client calculate dependencies and batch requests as it likes |
2342 | 2342 | $modules = FormatJson::encode( $this->getModules() ); |
2343 | 2343 | $scripts .= Html::inlineScript( |
2344 | | - "if ( mediaWiki !== undefined ) { mediaWiki.loader.load( {$modules} ); }" |
| 2344 | + "if ( mediaWiki !== undefined ) { mediaWiki.loader.load( {$modules} ); mediaWiki.loader.go(); }" |
2345 | 2345 | ); |
2346 | 2346 | } |
2347 | 2347 | |
2348 | | - // Add code to fetch all requested modules |
2349 | | - $scripts .= Html::inlineScript( "if ( mediaWiki !== undefined ) { mediaWiki.loader.go(); }" ); |
2350 | | - |
2351 | 2348 | // TODO: User Scripts should be included using the resource loader |
2352 | 2349 | // Add user JS if enabled |
2353 | 2350 | if( $this->isUserJsAllowed() && $wgUser->isLoggedIn() ) { |