-
Notifications
You must be signed in to change notification settings - Fork 6
/
demo.html
41 lines (35 loc) · 1.02 KB
/
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
33
34
35
36
37
38
39
40
41
<!doctype html>
<html lang="en">
<head>
<title>Demo</title>
</head>
<body>
<div class="container">
<div class="alert alert-primary" role="alert">
Immediately available
</div>
</div>
<script src="./rjs.js"></script>
<script>
async function main() {
try {
await rjs([
["https://code.jquery.com/jquery-3.3.1.slim.min.js", {
integrity: "sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo",
crossorigin: "anonymous"
}],
"https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css"
]);
await rjs( "https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js", {
integrity: "sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy",
crossorigin: "anonymous"
});
console.log( "jQuery and Bootstrap loaded", $ );
} catch ( err ) {
console.error( err );
}
}
main();
</script>
</body>
</html>