' ) .insertAfter( '#content' ); } // try related articles load on scroll $window.on( 'scroll', debouncedLoad ); // try an initial load, in case of no scroll loadRelatedArticles(); } if ( shouldShowReadMore ) { $( showReadMore ); } mw.track( 'ext.relatedArticles.logEnabled', { isEnabled: shouldShowReadMore } ); }( jQuery, mediaWiki ) );