forked from PaulGuo/In
-
Notifications
You must be signed in to change notification settings - Fork 0
/
in-demo.html
32 lines (31 loc) · 1.64 KB
/
in-demo.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 PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title></title>
<script type="text/javascript" src="in.js" autoload="true" core="http://t.douban.com/js/jquery.min.js"></script>
</head>
<body>
<script type="text/javascript">
In.add('jquery',{path:'http://code.jquery.com/jquery-1.5.2.js',type:'js',charset:'utf-8'});
In.add('a',{path:'demo-files/a.js',type:'js',charset:'utf-8',rely:['d']});
In.add('b',{path:'demo-files/b.js',type:'js',charset:'utf-8',rely:['c']});
In.add('c',{path:'demo-files/c.js',type:'js',charset:'utf-8',rely:['a']});
In.add('d',{path:'demo-files/d.js',type:'js',charset:'utf-8'});
In.add('e',{path:'demo-files/e.js',charset:'utf-8',rely:['jquery']});
In.add('f',{path:'demo-files/f.js'});
In.add('g',{path:'demo-files/g.css',rely:['f']});
In.add('h',{path:'demo-files/h.css'});
In('d','g','a','jquery','e','d','f','d',function() {alert('test1...')},'b',function() {alert('test2...')});
In('h',function() {alert('im thread 2...')});
In.ready('g','d',function() {alert('I\'m ready.')});
/*
notes:
--------------------------------------------------------------------------------------------------------------------------
relations: d -> g(f) -> a(d) -> jquery -> e(jquery) -> d -> f -> d -> function -> b(c(a(d))) -> function
blahlist: d -> f -> g -> d -> a -> jquery -> jquery -> e -> d -> f -> d -> function -> d -> a -> c -> b -> function
loading list: d -> f -> g -> d -> a -> jquery -> e -> function -> c -> b -> function
*/
</script>
</body>
</html>