Skip to content

Instantly share code, notes, and snippets.

@paulcurley
Created March 1, 2014 15:47
Show Gist options
  • Save paulcurley/9291711 to your computer and use it in GitHub Desktop.
Save paulcurley/9291711 to your computer and use it in GitHub Desktop.
Simple demo to trigger reflow
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