Skip to content

Commit 9bc9c79

Browse files
save file
1 parent 92de725 commit 9bc9c79

1 file changed

Lines changed: 12 additions & 9 deletions

File tree

utils/misc/html-entities/v2.0/html-entities-v2.0.html

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,9 @@
110110
menu.on.close = focus;
111111

112112

113-
initdom(document.body);
113+
await initdom(document.body);
114+
115+
hdr.complete();
114116

115117

116118
}//init
@@ -265,16 +267,22 @@
265267
//:
266268

267269

268-
function initdom(rootnode){
270+
async function initdom(rootnode){
269271

270272
root = rootnode;
271273

272-
hdr.initdom();
274+
await Promise.all([
275+
hdr.initdom(),
276+
filemod.initdom(r1),
277+
editor.source.initdom({mode:'text'}),
278+
editor.output.initdom({mode:'text'}),
279+
log.initdom(),
280+
]);
281+
273282
hdr.set.version(version);
274283

275284
var r1 = $(root,'#hdr');
276285

277-
filemod.initdom(r1);
278286

279287
$(r1,'[value=encode]').onclick = btn.encode;
280288
$(r1,'[value=decode]').onclick = btn.decode;
@@ -283,11 +291,6 @@
283291

284292
var view = $(root,'#view');
285293

286-
editor.source.initdom({mode:'text'});
287-
editor.output.initdom({mode:'text'});
288-
289-
290-
log.initdom();
291294

292295

293296
focus();

0 commit comments

Comments
 (0)