}
return true;
}
-} )();
\ No newline at end of file
+} )();
+
+$( document ).ready( function() {
+ var profile = $.client.profile();
+ $( 'html' )
+ .addClass( 'client-' + profile.name )
+ .addClass( 'client-' + profile.name + '-' + profile.versionBase )
+ .addClass( 'client-' + profile.layout )
+ .addClass( 'client-' + profile.platform )
+} );
// Add jQuery Cookie to initial payload (used in mediaWiki.user)
mediaWiki.loader.load( 'jquery.cookie' );
+mediaWiki.loader.load( 'jquery.client' );
// Alias $j to jQuery for backwards compatibility
window.$j = jQuery;