teamdf/jquery-visible — pull request #15 by jonjamz (2014-04-17 18:40:56+00:00)
Title: Allow optional custom container while maintaining the previous performance improvements

Tested as working here (latest Chrome): http://jsfiddle.net/rDm2M/39/

Minified version here: http://jsfiddle.net/rDm2M/40/

See output in the browser console.

I tested with/without getBoundingClientRect, with/without container. Tried to be careful about performance, but didn't actually test that.