Created
May 13, 2021 20:42
-
-
Save Klubuntu/021cd658198c7211686789a18cbf415e to your computer and use it in GitHub Desktop.
No flash on page load Jquery
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
<html style="display:none;"> | |
<head> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> | |
</head> | |
<body> | |
<div id="bg">No flash page load :)</div> | |
</body> | |
<script> | |
$(document).ready(function() { | |
$('html').show(); | |
}); | |
</script> | |
... | |
</html> |
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
$("html").fade; |
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
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script> |
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
body{ | |
width: 100%; | |
height: 100%; | |
background-color: gray; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment