What are the threading and runtime restrictions of Unity WebGL export?
Unity WebGL executes on the browser's single main thread by default, so C# threads and blocking waits (Thread, Task.Wait, synchronous file/network I/O) don't work as on desktop. Multithreading is possible only via WebAssembly threads (Web Workers + SharedArrayBuffer), which requires COOP/COEP headers on the hosting server and browser support.