browserscripts/timings/rumSpeedIndex.js
function(el, url) {
      if (url) {
        var rect = GetElementViewportRect(el);
        if (rect) {
          rects.push({'url': url,
                       'area': rect.area,
                       'rect': rect});
        }
      }
    }
function(el, url) {
      if (url) {
        var rect = GetElementViewportRect(el);
        if (rect) {
          rects.push({'url': url,
                       'area': rect.area,
                       'rect': rect});
        }
      }
    }
function ( el , url ) { if ( url ) { var rect = GetElementViewportRect ( el ) ; if ( rect ) { rects . push ( { 'url' : url , 'area' : rect . area , 'rect' : rect } ) ; } } }
Check a given element to see if it is visible
Check a given element to see if it is visible