forked from requirejs/requirejs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjqueryDynamic2.html
More file actions
45 lines (43 loc) · 1.3 KB
/
jqueryDynamic2.html
File metadata and controls
45 lines (43 loc) · 1.3 KB
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
<!DOCTYPE html>
<html>
<head>
<title>jQuery+RequireJS Sample Page</title>
<script type="text/javascript" src="../doh/runner.js"></script>
<script type="text/javascript" src="../doh/_browserRunner.js"></script>
<script src="../../require.js"></script>
<script>
var master = new doh.Deferred(),
masterCount = 0;
function readyFired() {
masterCount += 1;
if (masterCount === 3) {
master.callback(true);
}
}
doh.register(
"jqueryDynamic",
[
{
name: "jqueryDynamic",
timeout: 3000,
runTest: function() {
return master;
}
}
]
);
doh.run();
require({
"baseUrl": "./scripts/",
"paths": {
"jquery": "jquery-1.4.4"
}
});
require(["jquery", "dynamicApp"]);
</script>
</head>
<body>
<h1>jQuery+RequireJS Test Page</h1>
<p>Tests loading of jquery plugins with require.</p>
</body>
</html>