The image attributes are added on the server. But since PhotoSwipe is a script in the browser it will of course not work any longer, if it gets blocked.
My plugin is for free and works fine. Borlabs Cookie is a commercial and paid product. I don’t see the point in providing a workaround to be able to use a feature on another paid product.
Solution: don’t use the script blocker. I don’t understand why first installing plugins which need JavaScript to work and then activate a script blocker to stop them.
well the attributes are not added for images in galleries anymore (only there) and the photoswipe script is not blocked. everything works as expected for single images.
script blockers are usually used for GDPR reasons, i’d say: block embedded media, trackers, ads, … until consent is given.
as Borlabs is rather popular i thought it would be nice if two great plugins integrated well.
So attributes are added in galleries if the script blocker is disabled? Then then script blocker of Borlab Cookies seems to change the backend behaviour as well. However, I still don’t know how to change this since Borlab Cookies changes the normal function of WordPress.
And about script blocking for GDPR: maybe you should not use plugins which add trackers. For embedded media there like YouTube etc. are also solutions like Embed Privacy which work fine with Lightbox with PhotoSwipe (see Atten ST-8800D hot air station | Arno Welzel as example). And instead of Google Analytics you can use Matomo and disable cookies in Matomo and active IP address anonymization, so Matomo will only record the page view but without tracking individual users.