Skip to content

Commit 4156136

Browse files
save file
1 parent 5811191 commit 4156136

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed

html-components/ex/log-ex.html

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,16 @@
44

55

66
<script init>
7+
// ext here is a convenience library for easily loading modules
8+
// $ here is a simple library that contains some common dom operations
9+
// datatype a simple function for determining datatypes, $ relies on it
10+
var ext;
11+
var $;
12+
var datatype;
713

8-
var ext; // ext here is a convenience library for easily loading modules
9-
var $; // $ here is a simple library that contains some common dom operations
10-
var datatype; // a simple function for determining datatypes, $ relies on it
1114

1215
var log;
16+
1317

1418
async function init(){
1519

@@ -27,13 +31,16 @@
2731
}//init
2832

2933
(async()=>{
34+
// this adds to the asynchronous counter
35+
mod.stack.add;
3036

31-
mod.stack.add; // this adds to the asynchronous counter
37+
// these libraries need to be loaded for this example before the page is ready to run
38+
39+
({ext} = await import('https://libs.ext-code.com/js/io/ext-loader/ext-loader.m.js'));
40+
[$,datatype] = await ext.load.libs('js/dom/$.js','js/core/datatype.js');
3241

33-
({ext} = await import('https://libs.ext-code.com/js/io/ext-loader/ext-loader.m.js'));
34-
$,datatype = await ext.load.libs('js/dom/$.js','js/core/datatype.js');
35-
36-
mod.stack.complete; // this tells the component library the asynchonous work here is done
42+
// this tells the component library the asynchonous work here is done
43+
mod.stack.complete;
3744

3845
})();
3946

0 commit comments

Comments
 (0)