Blazy library not firing correctly sometimes on responsive images

Created on 14 November 2023, about 1 year ago
Updated 15 March 2024, 8 months ago

Problem/Motivation

We have seen that in some cases, when using Blazy 2.17+ and responsive images, the JS fails to fire correctly and unhide loaded responsive images. We noticed this with a view that is placing related news stories in a sidebar. Interestingly, loading another responsive image on the page, such as in the body of a node, causes things to fire off correctly.

We are not overriding any of the relevant templates, everything from the field-level down is as shipped from blazy and core stable9. The thumbnails seems to come in and be at 1px. These settings work in 2.16.

Steps to reproduce

Live example with it broken (if you see images in the sidebar, clear local data): https://blazytest-ets-unit.pantheonsite.io/

Live example with it working by having another responsive image in the body: https://blazytest-ets-unit.pantheonsite.io/news/2023/11/news-story-respo...

Live example of it working in 2.16: https://ets.osu.edu/news/2023/11/it-news-you-can-use-november-6

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

💬 Support request
Status

Fixed

Version

2.17

Component

Miscellaneous

Created by

🇺🇸United States R_H-L

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

Comments & Activities

Production build 0.71.5 2024