When the image style is set to "Hide (do not display image)" the a.photoswipe is visually hidden but still holds (& loads) the image element

Created on 7 May 2025, 8 days ago

Problem/Motivation

Currently original images will only be hidden, but still present in the markup. So they will be loaded (if the loading attribute ist not set to 'lazy'). The images should not printed at all in this case, only the empty photoswipe links are required.

Maybe related to 🐛 After update to 4.0.1 - Photoswipe responsive formatter "Override first image thumbnail style" isn't respected. Active ?!

Steps to reproduce

1. Configure the photoswipe formatter on a multi value media image reference field like this:

2. Check the markup in the frontend:

The Photoswipe responsive formatter has kind of the same problem, but is missing the src attribute:

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

5.0

Component

Code

Created by

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

Comments & Activities

Production build 0.71.5 2024