a5541ef90a64dc0356046c0d71a8bd9a422ea2af
[lhc/web/wiklou.git] / resources / mediawiki.page / mediawiki.page.startup.js
1 ( function ( $ ) {
2
3 mw.page = {};
4
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' );
10
11 // Initialize utilities as soon as the document is ready (mw.util.$content,
12 // messageBoxNew, profile, tooltip access keys, Table of contents toggle, ..).
13 // Enqueued into domready from here instead of mediawiki.page.ready to ensure that it gets enqueued
14 // before other modules hook into document ready, so that mw.util.$content (defined by mw.util.init),
15 // is defined for them.
16 $( mw.util.init );
17
18 } )( jQuery );