Quick answer: Never block on a Task in WebGL. Make the calling method async and await the operation, propagating async all the way up to a coroutine or Update entry point.
On desktop a blocking .Result might just stall a frame, but in a WebGL build there is no second thread to complete the work, so the page freezes permanently. The fix is to stop blocking and let the single thread pump the continuation. Here is how.
How to fix it
1. Replace blocking with await
Change var x = SomeTaskAsync().Result; to var x = await SomeTaskAsync(); and mark the enclosing method async. This frees the main thread so the browser can run the continuation.
2. Bridge async to a coroutine
If the caller must be a coroutine, yield on the task with a helper that checks task.IsCompleted each frame (for example yield return new WaitUntil(() => task.IsCompleted)) instead of blocking.
3. Avoid Task.Run in WebGL
There is no thread pool in WebGL, so Task.Run just schedules onto the same thread. Restructure CPU work into chunks spread across frames rather than offloading it.
Catching the ones you can't reproduce
The hardest version of this to fix is the one you can't reproduce — it only happens on a player's hardware, OS, driver, or save state, under conditions that simply aren't present on your machine. A report that says “it crashed” or “it froze” gives you nothing to act on, so the bug survives release after release while quietly costing you players.
Automatic error capture closes that gap. Each failure arrives with its full stack trace, the device and OS, the build number, and a breadcrumb trail of what the player did right before it broke, so even a failure you have never seen becomes a specific, reproducible issue. Fold identical failures into one signature ranked by how many players each hits, and your worklist sorts itself worst-first instead of arriving as a stream of vague complaints.
This is where a tool like Bugnet earns its place. Its SDK captures every Unity error automatically with the full stack trace plus device, OS, memory, build, and game-state context, folds duplicates into one grouped issue with an occurrence count, and ties each to the build it first appeared on — so you fix the problem that hurts the most players first and confirm it is gone when its signature disappears from the next release.
Most of the time the fix is small. Seeing the failure clearly is the part that actually costs you.