-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path6.html
32 lines (28 loc) · 881 Bytes
/
6.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
32
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, initial-scale=1.0">
<title>JS with defer doesn't blocks the rendering and respects the order, if there are some async they
will be loaded and executed
independently</title>
</head>
<script src="http://localhost:3000/static?file=js1.js&delay=3000"
defer>
</script>
<script src="http://localhost:3000/static?file=js3.js&delay=1000"
defer>
</script>
<body>
6
<img src="http://localhost:3000/random-image/100/100"
width="100">
<script src="http://localhost:3000/static?file=js2.js&delay=2000"
defer>
</script>
<script src="http://localhost:3000/static?file=js4.js&delay=1000"
async>
</script>
</body>
</html>