I coded lazy loading for videos, background images and images but it didn’t work on safari

I coded lazy loading for videos, background images and images but didn’t work on ios safari. I want show the background images/images/video with IntersectionObserver method. below codes are for …