Add fallback img structure

Created on 26 March 2025, 13 days ago

Problem/Motivation

When using image_sizes in combination with other scripts which manipulates the DOM it can happen that the initialization fails. In my case I use splide.js to create slideshows.

This results in the following error message:

Uncaught TypeError: Cannot read properties of null (reading 'content')
    at new <anonymous> (image-sizes.js?v=1.0.4:36:42)

Proposed resolution

Add a fallback img structure.

🐛 Bug report
Status

Needs review

Version

4.0

Component

Code

Created by

🇩🇪Germany Hydra

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024