Hacker News new | past | comments | ask | show | jobs | submit login

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




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: