mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/RelatedArticles
synced 2024-11-12 01:10:47 +00:00
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:
parent
d992571d34
commit
5f98265e7e
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue