User:Cqm/common.js

/** * @author Cqm */

( function ( $ ) {

'use strict';

function miniCompleteTest {

var checkComments;

function loaded { if ( ArticleComments.initCompleted ) { console.log( 'comments loaded' ); window.clearInterval( checkComments ); dev.minicomplete.load( '#article-comm' ); }       }

if ( $( '#WikiaArticleComments' ).length ) { // this is a dev version of this script and may cause numerous javascript // if you wish to use this code, you do so at your own risk importScriptURI( 'https://raw.github.com/onei/script/master/wikiScripts/miniComplete.js' ); checkComments = window.setInterval( loaded, 500 ); }

}

$( miniCompleteTest );

}( jQuery ) );