-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Håkan Olsson
committed
Jan 13, 2025
1 parent
6ab8c13
commit 492cac3
Showing
9 changed files
with
43 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,26 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Await Top Level 8</title> | ||
<title>Await Top Level 3</title> | ||
<meta http-equiv="content-type" content="text/html; charset=UTF-8"> | ||
<meta name="viewport" content="width=700, initial-scale=1.0"> | ||
<script type="module"> | ||
import * as test from './withTopLevelCall.js'; | ||
|
||
const outputArea = document.getElementById("OutputArea") | ||
function print(text) { | ||
outputArea.appendChild(document.createTextNode(text)); | ||
} | ||
|
||
print("Hello from TopLevel. IsInit " + test.getIsInit()) | ||
async function init(){ | ||
const test = await import('./withTopLevelSleep.js') | ||
print("Hello from OnLoad. IsInit " + test.getIsInit()) | ||
} | ||
window.onload = init | ||
|
||
</script> | ||
</head> | ||
<body> | ||
<h3>Await Top Level 8</h3> | ||
<p>Expekt string "Hello from TopLevel. IsInit true":</p> | ||
<h3>Await Top Level 3</h3> | ||
<p>Expekt string "Hello from OnLoad. IsInit true":</p> | ||
<div id="OutputArea" style="width:800px"\> | ||
</body> | ||
</html> |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,23 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Await Top Level 1</title> | ||
<title>Await Top Level 6</title> | ||
<meta http-equiv="content-type" content="text/html; charset=UTF-8"> | ||
<meta name="viewport" content="width=700, initial-scale=1.0"> | ||
<script type="module"> | ||
import * as test from './withTopLevelAwait.js'; | ||
import * as test from './withTopLevelSleep.js'; | ||
|
||
const outputArea = document.getElementById("OutputArea") | ||
function print(text) { | ||
outputArea.appendChild(document.createTextNode(text)); | ||
} | ||
|
||
window.onload = function() { | ||
print("Hello from OnLoad. IsInit " + test.getIsInit()) | ||
} | ||
print("Hello from TopLevel. IsInit " + test.getIsInit()) | ||
</script> | ||
</head> | ||
<body> | ||
<h3>Await Top Level 1</h3> | ||
<p>Expekt string "Hello from OnLoad. IsInit true":</p> | ||
<h3>Await Top Level 6</h3> | ||
<p>Expekt string "Hello from TopLevel. IsInit true":</p> | ||
<div id="OutputArea" style="width:800px"\> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,25 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Await Top Level 2</title> | ||
<title>Await Top Level 7</title> | ||
<meta http-equiv="content-type" content="text/html; charset=UTF-8"> | ||
<meta name="viewport" content="width=700, initial-scale=1.0"> | ||
<script type="module"> | ||
import * as test from './withTopLevelAwait.js'; | ||
import * as test from './withTopLevelCall.js'; | ||
|
||
const outputArea = document.getElementById("OutputArea") | ||
function print(text) { | ||
outputArea.appendChild(document.createTextNode(text)); | ||
} | ||
|
||
print("Hello from TopLevel. IsInit " + test.getIsInit()) | ||
window.onload = function() { | ||
print("Hello from OnLoad. IsInit " + test.getIsInit()) | ||
} | ||
</script> | ||
</head> | ||
<body> | ||
<h3>Await Top Level 2</h3> | ||
<p>Expekt string "Hello from TopLevel. IsInit true":</p> | ||
<h3>Await Top Level 7</h3> | ||
<p>Expekt string "Hello from OnLoad. IsInit true":</p> | ||
<div id="OutputArea" style="width:800px"\> | ||
</body> | ||
</html> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,23 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Await Top Level 3</title> | ||
<title>Await Top Level 8</title> | ||
<meta http-equiv="content-type" content="text/html; charset=UTF-8"> | ||
<meta name="viewport" content="width=700, initial-scale=1.0"> | ||
<script type="module"> | ||
import * as test from './withTopLevelCall.js'; | ||
|
||
const outputArea = document.getElementById("OutputArea") | ||
function print(text) { | ||
outputArea.appendChild(document.createTextNode(text)); | ||
} | ||
|
||
async function init(){ | ||
const test = await import('./withTopLevelSleep.js') | ||
print("Hello from OnLoad. IsInit " + test.getIsInit()) | ||
} | ||
window.onload = init | ||
|
||
print("Hello from TopLevel. IsInit " + test.getIsInit()) | ||
</script> | ||
</head> | ||
<body> | ||
<h3>Await Top Level 3</h3> | ||
<p>Expekt string "Hello from OnLoad. IsInit true":</p> | ||
<h3>Await Top Level 8</h3> | ||
<p>Expekt string "Hello from TopLevel. IsInit true":</p> | ||
<div id="OutputArea" style="width:800px"\> | ||
</body> | ||
</html> |