Closed thienedits closed 1 year ago
That looks like an old version of PhotoSwipe that I do not support anymore.
Hi @dimsemenov, I still see the issue with photoswipe 5.3.7. I created a codesandbox here
https://codesandbox.io/p/sandbox/trusting-bush-ifv42d?file=README.md
By your first screenshot, you disabled the cache in Chrome dev tools, that's why srcset is requested every time.
Ah ok I didn't realize that how it works with srcset, thanks.
I think its because the img "sizes" attribute is being continually updated as you resize the viewport
You can try on the demo site here: https://dromru.github.io/react-photoswipe-gallery/?path=/story/demo-srcset--srcset
View my screenshots below with network requests increasing.
Initial size:
After resizing, making the image scale in size: