Feature summary:
Images above the fold should be eagerly loaded, regardless of $wgNativeImageLazyLoading.
Use case(s):
$wgNativeImageLazyLoading adds a loading="lazy" attribute to all thumbnail's <img> elements on the page.
This decreases the perceived loading and the Largest Contentful Paint (LCP) time of the page.
Potential solutions include:
- Allow user to define whether a thumbnail should be eagerly loaded through the image syntax in wikitext
- Do not add the lazyloading attribute to the first non icon image rendered
- Do not add the lazyloading attribute to images above certain height of the page
Benefits:
- Reduce perceived loading time for users
- Reduce LCP