MediaWiki:Mobile.js

/* All JavaScript here will be loaded for users of the mobile site */

mw.loader.using('mobile.site.styles')

// T111565 - Load code to handle mw-collapsible when there are collapsible elements on the page mw.hook('wikipage.content').add(function($content) {	var $collapsible = $content.find('.mw-collapsible');	if($collapsible.length) {		mw.loader.using('jquery.makeCollapsible').then(function { $collapsible.makeCollapsible; });	} });