News for hackers. Stuff that matters.
Re:Show HN: In-view.js – Get notified when DOM elements ente... by spython on Saturday August 27, 2016 @07:21PM (#12374623)
I am using this technique to lazy load and unload videos on my site[1]. Since there are many videos that autoplay on scroll, some mechanism is needed to stop loading a video that has been scrolled over.

I am using onScreen which I found more efficient than alternative solutions.

[1] http://rybakov.com/blog/

[2] https://github.com/silvestreh/onScreen

There are no comments on this comment yet.