medialize / ally.js

JavaScript library to help modern web applications with accessibility concerns
http://allyjs.io/
MIT License
1.53k stars 83 forks source link

Use IntersectionObserver in when/visible-area #141

Open rodneyrehm opened 8 years ago

rodneyrehm commented 8 years ago

As of Chrome 51 the IntersectionObserver API is available. This is a much more efficient implementation of what when/visible-area does internally. We should use the IntersectionObserver where possible.