Skip to content

Instantly share code, notes, and snippets.

@jeangontijo
Last active June 14, 2018 14:39
Show Gist options
  • Save jeangontijo/82f0a11f6c71cba47e91e5c5ceeb32d2 to your computer and use it in GitHub Desktop.
Save jeangontijo/82f0a11f6c71cba47e91e5c5ceeb32d2 to your computer and use it in GitHub Desktop.
Preloader
var interval = setInterval(function() {
if(document.readyState === 'complete') {
document.body.classList.remove('load');
clearInterval(interval);
}
}, 100);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment