w/extensions/MobileFrontend/resources/mobile.startup/Skin.js
/**
			 * Check whether an image should be loaded based on its proximity to the
			 * viewport; and whether it is displayed to the user.
			 * @param {jQuery.Object} $placeholder
			 * @return {Boolean}
			 * @ignore
			 */
Check whether an image should be loaded based on its proximity to the
viewport; and whether it is displayed to the user.
@param {jQuery.Object} $placeholder
@return {Boolean}
@ignore
Check whether an image should be loaded based on its proximity to the viewport ; and whether it is displayed to the user . @param { jQuery . Object } $placeholder @return { Boolean } @ignore
function shouldLoadImage( $placeholder ) {
				return viewport.isElementCloseToViewport( $placeholder[0], offset ) &&
					( $placeholder.is( ':visible' ) || $placeholder.height() === 0 );
			}
function shouldLoadImage ( $placeholder ) { return viewport . isElementCloseToViewport ( $placeholder [ 0 ] , offset ) && ( $placeholder . is ( ':visible' ) || $placeholder . height ( ) === 0 ) ; }
Check whether an image should be loaded based on its proximity to the
 viewport; and whether it is displayed to the user.
Check whether an image should be loaded based on its proximity to the viewport ; and whether it is displayed to the user .
// If a placeholder is an inline element without a height attribute set it will record as hidden // to circumvent this we also need to test the height (see T143768).