vue-lazyload icon indicating copy to clipboard operation
vue-lazyload copied to clipboard

doesn't work on Safari

Open vesper8 opened this issue 5 years ago • 4 comments

Have tried v-lazy on Safari Mobile and it just doesn't work

It may work on later versions, but it doesn't on most versions including the version on the Xcode simulator

My question is.. is there a way to have a fallback for Safari that doesn't require a lot of extra if/else code ? Otherwise can't use this package at all as it affects a too large number of users

vesper8 avatar Jun 09 '19 11:06 vesper8

@vesper8 Checked on demo page on iOS 10 and it works fine Make sure that you don't use https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API , as it's not supported by older iOS versions

Solant avatar Jun 17 '19 10:06 Solant

@vesper8 Sure. If you want to use IntersectionObserver you should require it in your project require('intersection-observer'); Get it here: https://www.npmjs.com/package/intersection-observer

Or, you can just disable observer in vue-lazyload settings

Vue.use(VueLazyload, {
  observer: false // btw it's false by default
})

harmakit avatar Nov 07 '19 05:11 harmakit

env: safari in ios 12.4.6 and above. When the list is long,lazyload doesn't work very well,it only render serveral images ahead. When u continue scroll,the image renders only if u set a specific height and overflow-y:auto on the list wrapper or waiting for the scroll stopped then tap or scroll the page. In my case,there are some animate effects,so I can't set height for the wrapper. Bty,it works on chrome or Android well.

adndyxu avatar Jul 07 '20 06:07 adndyxu

Any update ? For older versions ?

highoncarbs avatar Nov 23 '21 18:11 highoncarbs