master
1<script>
2 import PhotoSwipeLightbox from 'photoswipe/lightbox';
3
4 window.lightbox = PhotoSwipeLightbox;
5 window.pswpModuleImporter = () => import('photoswipe');
6
7 const event = new CustomEvent('pswp:enable');
8 document.dispatchEvent(event);
9 // console.log("Producer: PhotoSwipe resources are ready and 'pswp:enable' event dispatched.");
10</script>