title: Performance with infinite scroll or a lot of dom elements?
body: <p>I have a question on a big # of dom elmenets and performance.</p>
  
  <p>Let's say I have 6000 dom elements on a page and the number of the elements can be increased as a user interact with the page (user scrolls to create a new dom element) like twitter.</p>
  
  <p>To improve the performance of the page, I can think of only two things.</p>
  
  <ol>
  <li>set display to none to invisible items to avoid reflow</li>
  <li>remove invisible items from the dom then re-add them as needed.</li>
  </ol>
  
  <p>Are they any other ways of improving a page with a lot of dom elements?</p>