Skip to content

Instantly share code, notes, and snippets.

@thanh4890
Last active August 20, 2018 10:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thanh4890/c480154efb411189d2050fd5bdf8f42f to your computer and use it in GitHub Desktop.
Save thanh4890/c480154efb411189d2050fd5bdf8f42f to your computer and use it in GitHub Desktop.
<!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