Skip to content

Instantly share code, notes, and snippets.

@doctyper
Created May 22, 2013 17:59
Show Gist options
  • 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