SArpnt / bytebeat-composer

Bytebeat player with playlist that contains many interesting formulas from the Internet.
https://sarpnt.github.io/bytebeat-composer/
MIT License
13 stars 2 forks source link

modular js? #12

Closed SArpnt closed 2 years ago

SArpnt commented 3 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>

not sure if this is an improvement and how good the support is

SArpnt commented 2 years ago

done