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