This repository was archived by the owner on Dec 31, 2022. It is now read-only.
File tree 1 file changed +8
-8
lines changed
1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -7,25 +7,25 @@ The defining characteristic of LABjs is the ability to load *all* JavaScript fil
7
7
8
8
For instance, the following "< ; script> tag soup":
9
9
10
- <script type="text/javascript" src="http://remote.tld/jquery.js"></script>
11
- <script type="text/javascript" src="local/plugin1.jquery.js"></script>
12
- <script type="text/javascript" src="local/plugin2.jquery.js"></script>
13
- <script type="text/javascript" src="local/init.js"></script>
14
- <script type="text/javascript" >
10
+ <script src="http://remote.tld/jquery.js"></script>
11
+ <script src="local/plugin1.jquery.js"></script>
12
+ <script src="local/plugin2.jquery.js"></script>
13
+ <script src="local/init.js"></script>
14
+ <script>
15
15
initMyPage();
16
16
</script>
17
17
18
18
19
19
With LABjs becomes:
20
20
21
- <script type="text/javascript" src="LAB.js"></script>
22
- <script type="text/javascript" >
21
+ <script src="LAB.js"></script>
22
+ <script>
23
23
$LAB
24
24
.script("http://remote.tld/jquery.js").wait()
25
25
.script("/local/plugin1.jquery.js")
26
26
.script("/local/plugin2.jquery.js").wait()
27
27
.script("/local/init.js").wait(function(){
28
- initMyPage();
28
+ initMyPage();
29
29
});
30
30
</script>
31
31
You can’t perform that action at this time.
0 commit comments