5 // Client profile classes for <html>
6 // Allows for easy hiding/showing of JS or no-JS-specific UI elements
8 .addClass( 'client-js' )
9 .removeClass( 'client-nojs' );
15 * Fired when wiki content is being added to the DOM
17 * It is encouraged to fire it before the main DOM is changed (when $content
18 * is still detatched). However, this order is not defined either way, so you
19 * should only rely on $content itself.
21 * This includes the ready event on a page load (including post-edit loads)
22 * and when content has been previewed with LivePreview.
24 * @event wikipage_content
26 * @param {jQuery} $content The most appropriate element containing the content,
27 * such as #mw-content-text (regular content root) or #wikiPreview (live preview
30 mw.hook( 'wikipage.content' ).fire( $( '#mw-content-text' ) );
33 }( mediaWiki, jQuery ) );