Lazy load and Google Page Speed Insights

Created on 10 May 2019, about 5 years ago
Updated 14 September 2023, 10 months 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.69.0 2024