ooade / pimg

:camera: Mini Image Lazy Loader for P(R)eact and Vue
https://pimg.surge.sh
MIT License
99 stars 11 forks source link

Add polyfill for IntersectionObserver API #36

Closed ooade closed 4 years ago

ooade commented 5 years ago

Intersection Observer API which powers the lazy loading feature might fail in IOS if the polyfill is not added. One thing we could also do to avoid adding a dependency is to use componentDidCatch to catch errors related to this.

I would really love contributions from those using IOS, as I have no IOS devices to help test these features.