forked from bizzbyster/bizzbyster.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
image_after_visual_page_done.html
31 lines (30 loc) · 1.02 KB
/
image_after_visual_page_done.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<!doctype html>
<html>
<head>
<title>Late loading, out of viewport image test page</title>
</head>
<body>
<img src='https://raw.githubusercontent.com/bizzbyster/bizzbyster.github.io/master/images/zip-icon.png?inViewPort=true'>
<div style="height: 99999px; width: 100%" id="view_div"></div>
<script type="text/javascript">
function getImage(){
myimage = new Image();
myimage.src = 'https://raw.githubusercontent.com/bizzbyster/bizzbyster.github.io/master/images/zip-icon.png?rnd=' + Math.random();
}
function sleep(milliseconds){
var start = new Date().getTime();
var keep_looping = true;
while (keep_looping) {
if ((new Date().getTime() - start)> milliseconds) {
keep_looping = false;
}
}
}
sleep(1500);
document.write("<img src='https://raw.githubusercontent.com/bizzbyster/bizzbyster.github.io/master/images/zip-icon.png?rnd=" +
Math.random() + "'>");
</script>
</body>
</html>
</body>
</html>