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.
I am using onScreen which I found more efficient than alternative solutions.
[1] http://rybakov.com/blog/
[2] https://github.com/silvestreh/onScreen