Add image lazy loading #27032
Labels
feature request
Fixed in 2.4.x
The issue has been fixed in 2.4-develop branch
Issue: Format is valid
Gate 1 Passed. Automatic verification of issue format passed
Description (*)
In many situations, catalog lists can contain many images, while most of them remain under the first fold.
When running an audit using Lighthouse, it tells us the following.

So we need to add the
loading="lazy"
attribute to the images on the catalog list. This attribute is supported on the following browsers (source):In Chromium's aforementioned blog post, it seems that lazy loading is enabled for all websites on Chrome Android browsers with Lite Mode enabled.
Expected behavior (*)
Better performance for catalog pages. This is achieved by adding the
loading="lazy"
attribute to theimage_with_borders.phtml
template.Benefits
Better performance for both users and Lighthouse reports.
Additional information
Not for now
The text was updated successfully, but these errors were encountered: