Lightweight javascript module for detecting presence of DOM element on screen
var checker = new Checker('.lazy');
checker.addActionOnVisible(function (elem) {
elem.innerHTML = 'visible';
elem.style.background = "white";
elem.style.fontSize = '25px'
});
checker.addActionOnInVisible(function (elem) {
elem.innerHTML = 'inVisible';
elem.style.background = "gray";
});