Skip to content

Instantly share code, notes, and snippets.

@doctyper
Created May 22, 2013 17:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save doctyper/5629528 to your computer and use it in GitHub Desktop.
Save doctyper/5629528 to your computer and use it in GitHub Desktop.
How to force a repaint without a timeout
item.style.display = "none";
var computed = window.getComputedStyle(item).display;
item.style.display = "";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment