Closed SArpnt closed 2 years ago
create worker: new Worker("worker.mjs", { type: "module" }); remove "use strict"; make sure bytebeats aren't running in strict mode preload workers: <link rel="modulepreload" href="worker.mjs"> load script: <script type="module" async src="main.mjs"></script>
new Worker("worker.mjs", { type: "module" });
"use strict";
<link rel="modulepreload" href="worker.mjs">
<script type="module" async src="main.mjs"></script>
not sure if this is an improvement and how good the support is
done
create worker:
new Worker("worker.mjs", { type: "module" });
remove"use strict";
make sure bytebeats aren't running in strict mode preload workers:<link rel="modulepreload" href="worker.mjs">
load script:<script type="module" async src="main.mjs"></script>
not sure if this is an improvement and how good the support is