Splashscreen until document ready

Developer
Size
2,106 Kb
Views
8,096

How do I make an splashscreen until document ready?

Perhaps you can't see the splashscreen, because the document is ready instantly :D 15Mpx image loads in the background. Try this for a heavier page. What is a splashscreen until document ready? How do you make a splashscreen until document ready? This script and codes were developed by Reinis on 06 December 2022, Tuesday.

Splashscreen until document ready Previews

Splashscreen until document ready - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>splashscreen until document ready</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<div id="splashscreen"></div>
<!-- Splashscreen should mach body bgcolor -->
<!-- The following is to slow down the page load so that the effect can be observed --> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.jsx=10"></script> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.jsx=123"></script> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.jsx=1232"></script> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.jsx=12341"></script> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.jsx=123459"></script> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.jsx=1234568"></script> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.jsx=12345677"></script> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.jsx=1234567863"></script> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.jsx=1234567891"></script> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.jsx=1234567890"></script> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.jsx=1234567890"></script> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.jsx=1234567890"></script> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.jsx=1234567890"></script> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.jsx=1234567890"></script> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.jsx=1234567890"></script>
<img src="https://upload.wikimedia.org/wikipedia/commons/8/85/Goldendoodle_puppy_Marty.jpg" />
<img src="https://puppyhood.com/media/7606/2015_01_24_puppychow_lacunha_1026.jpg" /> <script src="js/index.js"></script>
</body>
</html>

Splashscreen until document ready - Script Codes CSS Codes

body {margin:0;background-color:purple;}
img {height:200px;}
#splashscreen {position:fixed; z-index:99999; width:100vw; height:100vh; background-color:black; background-image: url('http://www.ropejumping.lv/!/logo.png'); background-repeat:no-repeat; background-size: 250px auto; background-position:center;}
.dn {display:none}

Splashscreen until document ready - Script Codes JS Codes

$(document).ready(function() { $('#splashscreen').addClass('dn');
})
Splashscreen until document ready - Script Codes
Splashscreen until document ready - Script Codes
Home Page Home
Developer Reinis
Username 72
Uploaded December 06, 2022
Rating 3
Size 2,106 Kb
Views 8,096
Do you need developer help for Splashscreen until document ready?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Reinis (72) Script Codes
Create amazing marketing copy with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!