title: what is alternative for :visible
body: <p>I have a performace issue due to <strong>:visible</strong> </p>
  
  <p>I have a code where i need to see visibility </p>
  
  <pre><code>layouts.filter(":visible")
  </code></pre>
  
  <p>Due to this :visible i am getting a performance issue</p>
  
  <p>can you please suggest any better native JS way.</p>
  
  <p>I have tried </p>
  
  <pre><code>isVisible = function(elem){
     return !!(elem.offsetWidth || elem.offsetHeight);
  }
  </code></pre>
  
  <p>still i see same performance issue mainly in ie11.</p>
  
  <p><strong>What is the better alternative of :visible in perspective of performance</strong></p>