IntersectionObserver support
shrpne opened this issue · 9 comments
I think it's time to implement IntersectionObserver, since it supported in most modern browsers: http://caniuse.com/#feat=intersectionobserver
The link https://wicg.github.io/IntersectionObserver/ is not found
Yes!
I found this library that seems to work with intersectionObserver with IE. https://github.com/russellgoldenberg/scrollama
The only browsers that don't support IntersectionObserver are ie and safari. It's in the technical preview for safari so it's coming. Seems like a really great addition at this point!
Intersection observer has now landed in Safari :)
@camwiegert are there any plans to implement this?
To be perfectly honest, the native Intersection Observer API is so straightforward that it probably makes sense just to use that rather than a library unless you had a particular requirement that the library solves.
the native Intersection Observer API is so straightforward that it probably makes
sense just to use that rather than a library
Yes, I agree with that. However, in-view
is an existing library, it's being used in various places already. Ideally it's internal implementation would be as efficient as possible, and adopting intersection observer under the hood means anyone using this library gets better performance automatically. We should be doing this.