blob: 82278f41a1927830e0213c378b92909cba7ff579 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/
-->
<!DOCTYPE HTML>
<html>
<head>
<script>
self.onmessage = (msg) => {
const workerLoadedPort = msg.ports[0];
const worker = new Worker(msg.data);
worker.onmessage = () => {
workerLoadedPort.postMessage("worker loaded");
};
};
</script>
</head>
<body></body>
</html>
|