title: How to force ie8 to repaint after adding a class to a dom element
body: <p>In ie8 if elements don't 'repaint' with the associated css when you change the classname, how can you force the browser to refresh and not kill ie8 performance?</p>
  
  <p>This post (<a href="https://stackoverflow.com/questions/3485365/how-can-i-force-webkit-to-redraw-repaint-to-propagate-style-changes">How can I force WebKit to redraw/repaint to propagate style changes?</a>) suggested calling offsetHeight which forces a repaint. </p>
  
  <p>This post (<a href="http://www.tek-tips.com/viewthread.cfm?qid=1688809" rel="nofollow noreferrer">http://www.tek-tips.com/viewthread.cfm?qid=1688809</a>) had a comment that suggested adding and removing a class from body element.</p>
  
  <p>Both of these approaches killed ie8 performance and the first had side-effects on my layout.</p>
  
  <p>What's the best approach?</p>