Increase threshold for loading related articles in the footer

The threshold is now 2 times the window height per Nirzar.

Bug: T144822
Change-Id: Ia72b0532e481211645364a1ed9715f6f07f28fca
This commit is contained in:
Baha 2016-09-15 15:10:24 -04:00
parent d992571d34
commit 5f98265e7e

View file

@ -22,7 +22,7 @@
*/
function loadRelatedArticles() {
var readMore = $( '.read-more-container' ).get( 0 ),
scrollThreshold = $window.height() * 1.5;
scrollThreshold = $window.height() * 2;
if ( mw.viewport.isElementCloseToViewport( readMore, scrollThreshold ) ) {
$.when(