Open theusualberliner opened 1 year ago
Running into a similar issue. After further debugging it seems that photoswipe still requests the jpeg while the contentRemove event 🤔 Did you found any solution?
Seems that the issue has not been solved. According to the code it should also create the element
Hello!
I'm creating a gallery of responsive images using picture, source and img and I'd like to use the same in photoswipe. The issue which I have is that photoswipe preloads original jpg files when moving to the next/previous slide, or in case of this example - when you open first picture: https://photoswipe.com/custom-content. Also if you open a picture and then close it, webp image is loaded on open, and on slide closing jpg image is loaded.
In my example it looks like this: when I navigate to 3rd image, it loads first image in jpg and then, as I proceed further, it keeps loading avif and jpg.
Code snippets: