Lazy load and Google Page Speed Insights

Created on 10 May 2019, over 5 years ago
Updated 14 September 2023, about 1 year ago

When lazy loading is enabled for a field and running google page speed insights it is still recommended to defer offscreen images.

Looking at the documentation for the lazysizes module https://github.com/aFarkas/lazysizes used for lazyloading images in the module the example shows that the img tag should include data-src rather than src.

There also appears to be an issue with aspect ratios not being added to the img tag.

🐛 Bug report
Status

Fixed

Version

2.13

Component

Code

Created by

🇬🇧United Kingdom JamesDevware

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024