Board Thread:Support Requests - Designing Your Wiki/@comment-7205164-20170829230353/@comment-27958705-20170928143452

then mw.hook('wikipage.content').add(function($content){ if (!window.wgOggPlayer && $content.find('.ogg_player').length)     importScriptURI('/extensions/OggHandler/OggPlayer.js'); }); it will load oggplayer.js only if it really needed to play smth.