JS-based lazy-loaded images should be replaced with native lazy-loading #1746
Labels
[Plugin] Image Prioritizer
Issues for the Image Prioritizer plugin (dependent on Optimization Detective)
[Plugin] Optimization Detective
Issues for the Optimization Detective plugin
[Type] Enhancement
A suggestion for improvement of an existing feature
Milestone
See #1745:
For example, Image Prioritizer should take the following from the Avada theme (code ref):
And transform it into:
And the following from Speed Optimizer from SiteGround (code ref):
Should be converted into:
Then Image Prioritizer's enhancements can apply as expected, with removing
loading=lazy
if theIMG
is in an initial viewport and also to add preloading as appropriate when it is the LCP element.There are many implementations of JS-based lazy-loading, however, so this should prioritize what is most popular (e.g. LazySizes). On the other hand, plugins which use JS-based lazy-loading could rather be engaged with to use native lazy-loading instead.
The text was updated successfully, but these errors were encountered: