Force the browser to repaint an element
Install with component(1): $ component install jasonkuhrt/force-redraw
force_redraw()
Refresh the document.body
element. Typically you won't want to do this because it may well result in a blink-like flicker of the user-interface.
force_redraw(dom_element)
Redraw the given DOM element.
This function's usefulness is particularly relevant for webkit where buggy css rendering issues have cropped up in my client-side apps. Others have encountered this problem too: http://stackoverflow.com/questions/3485365/how-can-i-force-webkit-to-redraw-repaint-to-propagate-style-changes.
BSD-2-Clause