js/photoswipe.jquery.js runs before library leading to "Uncaught ReferenceError: PhotoSwipe is not defined"

Created on 1 March 2023, almost 2 years ago

Problem/Motivation

Uncaught ReferenceError: PhotoSwipe is not defined

as the js/photoswipe.jquery.js is executed before the library under certain circumnstances.

Steps to reproduce

Proposed resolution

To prevent that, we have to set photoswipe or photoswipe.dev as dependency of photoswipe.init

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

🇩🇪Germany Anybody Porta Westfalica

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

Comments & Activities

Production build 0.71.5 2024