Intersection Observers Explained https://github.com/WICG/IntersectionObserver/blob/gh-pages/explainer.md
Support in chrome https://www.chromestatus.com/feature/5695342691483648
Feature on caniuse https://github.com/Fyrd/caniuse/issues/2425
intersectionObserver is included in Edge 15, which shipped today (11th April) with Windows 10 Creators Update.
Matthias Kurz commented
You should report an issue here if you think that's wrong behaviour:
`unobserve` and throw Error.
var observer = new IntersectionObserver(() => console.log('hoge'));
observer.unobserve(document.body); // TypeMismatchError
Missing the isIntersecting property in IntersectionObserverEntry:
Rob Eisenberg commented
Here's a prototype of Aurelia's binding engine which uses this feature: https://gist.run/?id=5f21e717c107011366221fe8cec50959 Testing in Chrome today demonstrates an almost 2x performance improvement for us. We'd love to see this in more browsers so we can build this in :)
Thomas Sturm commented
This would be a really useful API to implement - Chrome already supports it and it's scheduled for November 2016 in Firefox. If Edge supports it too, it will reduce the amount of Flash being used across the web by a significant number.
This should happen as soon as possible
Do it! :)
Иван Олейник commented
It's a good idea to implement this.