title: Is there a way to access whether a portion of a webpage is being rendered on screen or not via Javascript?
body: <p>Currently our logic runs within an iframe on clients pages. We have the request to now detect whether that iFrame is currently in the viewing window or not (scrolled off-screen). </p>
  
  <p>I just had an idea that this might be something that the GPU might already have which would allow for it to provide better performance on the page with regards to what it is rendering and I wanted to know if anyone was aware of whether this data was accessible via an API/lib such as OpenGL.</p>
  
  <p>I am aware that providing actual pixel info, could be a large security issue, however just having access to whether or not a specific iFrame was being rendered would be helpful for viewability detection. </p>
  
  <p>Is anyone aware of whether there is a way to do this? Current reading so far is not showing this as being possible, but I am continuing my search and thought I would post here as well.</p>
  
  <p>Any info or direction would be helpful.  Thanks!</p>