Created
March 1, 2014 15:47
-
-
Save paulcurley/9291711 to your computer and use it in GitHub Desktop.
Simple demo to trigger reflow
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var reflow = function () { | |
var dummy = document.createElement('div'); | |
dummy.style.position = 'absolute'; | |
document.body.appendChild(dummy); | |
setTimeout(function () { | |
document.body.removeChild(dummy); | |
}, 0); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment