You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using code like this, IntersectionObserver will not report the change from display:none to display:block on iOS. In my case I am using lozad.js on both image elements. The thumbnail is loaded properly using lozad.js, but when clicked the lightbox is not. Upon scrolling a bit, the change is detected and the image is loaded. The workaround is to set a polling interval as specified here, but optimally this shouldn't be necessary as the documentation says changes in the DOM are supposed to be detected.
The text was updated successfully, but these errors were encountered:
Is this on Safari or iOS WebView? I've heard several reports of bugs on iOS WebView, and I wouldn't be surprised if this isn't one of them.
Also, can you check to see if this is a problem on the latest iOS (which should support IntersectionObserver natively now)?
Given the lack of activity here, let's close as incomplete.
If others are running into this issue w/ the native implementation provided by iOS (webview or Safari), I would recommend filing a bug against https://bugs.webkit.org/
When using code like this,
IntersectionObserver
will not report the change fromdisplay:none
todisplay:block
on iOS. In my case I am usinglozad.js
on both image elements. The thumbnail is loaded properly using lozad.js, but when clicked the lightbox is not. Upon scrolling a bit, the change is detected and the image is loaded. The workaround is to set a polling interval as specified here, but optimally this shouldn't be necessary as the documentation says changes in the DOM are supposed to be detected.The text was updated successfully, but these errors were encountered: