forked from headjs/headjs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
70 lines (51 loc) · 1.56 KB
/
index.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<!doctype html>
<!-- A test page for random things. -->
<html class="no-js">
<head>
<title>Test page</title>
<!--[if IE]><script src="ie-console.js"></script><![endif]-->
<script>var head_conf = {screens: [100, 200, 2000], section: '-area', page: 'page'};</script>
<script src="../src/core.js"></script>
<script src="../src/css3.js"></script>
<script src="../src/load.js"></script>
<!-- <script src="../dist/head.min.js"></script> -->
<script>
// detect video tag
head.feature("video", function() {
var tag = document.createElement('video');
return !!tag.canPlayType;
});
</script>
</head>
<body>
<h2>headjs</h2>
<div id="info"></div>
<script>
(function() {
var start = new Date(),
server = "http://192.168.0.102:2000",
num = 31;
head(function() {
console.log(" -->last one", (new Date()).getTime() - start.getTime());
});
head.ready("c", function() {
console.info("after C");
});
// will load but not execute.
head.js(
{a: server + "/A-" + num + "?time=100"},
{b: server + "/BB-" + num},
{c: server + "/C-" + num + "?time=600"},
server + "/E-" + num + "?time=200",
server + "/F-" + num + "?time=600", // { tooltip: server + "/file2" + num + "?time=900" },
function() {
console.log(" -->The Bundle");
});
head.js({ invalid: "http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js?" + num }, function() {
console.log(" -->rangeinput");
});
console.info(document.documentElement.className);
})();
</script>
</body>
</html>