corenominal

Full stack web developer, interested in all the things, but especially the web, code, design, Linux, OS X, PHP, WordPress, JavaScript & robots.

scrollMonitor image/svg+xml

A simple and fast API to monitor elements as you scroll […] The scroll monitor was designed to be very fast. On each scroll event the DOM is only touched twice, once to find the document height and again to find the viewport top. No variables are declared, nor are any objects, arrays, or strings created. Watchers are very cheap. Create them liberally.

Another scroll monitor, this one looks quite efficient. The stress test demos are a nice touch.

Leave a comment

Your email address will not be published. Required fields are marked *