Skip to content

Instantly share code, notes, and snippets.

@thanh4890
Last active Aug 20, 2018
Embed
What would you like to do?
<!DOCTYPE html>
<html>
<head>
<title></title>
<style>
.bd-loading {
display: none;
}
<style>
<link rel="preload" href="style.css">
<script async src="script.js">
</head>
<body class="bd-loading">
<script>
setTimeout(function () {
document.body.classList.remove('bd-loading')
}, 1000)
</script>
</body>
</html>
.bd-loading {
display: block;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment