doc: Clarify documentation for ParserOptions::getUserLangObj
[mediawiki.git] / resources / mediawiki.page / mediawiki.page.startup.js
blob3846681878a1efe2562d0323ab88a0a8ef67535c
1 ( function ( mw, $ ) {
3 mw.page = {};
5 // Client profile classes for <html>
6 // Allows for easy hiding/showing of JS or no-JS-specific UI elements
7 $( 'html' )
8 .addClass( 'client-js' )
9 .removeClass( 'client-nojs' );
11 $( function () {
12 // Initialize utilities as soon as the document is ready (mw.util.$content,
13 // messageBoxNew, profile, tooltip access keys, Table of contents toggle, ..).
14 // In the domready here instead of in mediawiki.page.ready to ensure that it gets enqueued
15 // before other modules hook into domready, so that mw.util.$content (defined by
16 // mw.util.init), is defined for them.
17 mw.util.init();
19 /**
20 * @event wikipage_content
21 * @member mw.hook
22 * @param {jQuery} $content
24 mw.hook( 'wikipage.content' ).fire( $( '#mw-content-text' ) );
25 } );
27 }( mediaWiki, jQuery ) );