madef/onVisible — pull request #1 by niknah (2013-04-10 11:49:37+00:00)
Title: frequency:"window" + others

Thanks, this is a useful addon.

If you're interested I've added...

frequency:0
Run only once. Useful to run with checkOnLoad.

frequency:"window"
Run on window scroll or resize instead of a timer

Added disableVisibilityListener.
.trigger('disableVisibilityListener') to disable the listener when you've loaded whatever you want to load up. If this is being used to load things as you're scrolling down, the page may slow down after a while. Useful if you don't need to check for things that have been loaded already.