(bug 34702) More localised parentheses.
[mediawiki.git] / resources / mediawiki.page / mediawiki.page.startup.js
bloba5541ef90a64dc0356046c0d71a8bd9a422ea2af
1 ( function ( $ ) {
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         // 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 );
18 } )( jQuery );