Skip to content

jasonkuhrt-archive/force-redraw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

force-redraw

Force the browser to repaint an element

Installation

Install with component(1): $ component install jasonkuhrt/force-redraw

API

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.

Notes

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.

License

BSD-2-Clause

About

Force the browser to repaint an element

Resources

Stars

Watchers

Forks

Packages

No packages published