Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Yes, lazy loading is a good use case.

Echo.js (https://github.com/toddmotto/echo) is another small no-dependency library (1.89 KB minified), which detects elements appearing on screen, and goes a step further to swap the "src" attribute with a placeholder for lazy loading and unloading.

Disclosure: I've submitted a pull request to it.



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

Search: