- Home /
WebGL build not working on server
Hello,
I have a Unity WebGL project (Unity 2020, Gzip compression). When I build it using "Build and Run" everything runs properly, but I am unable to get it to run neither with an actual or a local server. I've used "Servez" and made sure a different WebGL project I have lying around runs properly (it does), but my latest doesn't. The Unity loader appears, loads about 90% and then freezes. The browser console claims the following -
I am using UMA in my game, so the file size is quite big (over 250 MB) even if I build only a single empty scene.
Can anyone help me out? I'm not even sure where to look, based on the errors I am receiving.
Update: Empty scene with no compression works. And is somehow smaller. Now checking full game.
Answer by jadeblue11 · Jun 23, 2021 at 09:17 PM
You can try this:
1) Go to Build settintgs -> Player Settings -> Publish settings -> Compression format: disable
2) If first step doesnt work... try this:
3) If Descompression Fallback or Compression format: disable is not working for you... try this:
What I did was downgrade my Unity version to 2019.4.9f1 and that've worked for me, no more build errors, no more endless loading screen... hope this can help anyone.
Seems like Unity2020 has an issue with WebGL compilations.
Your answer
![](https://koobas.hobune.stream/wayback/20220613011516im_/https://answers.unity.com/themes/thub/images/avi.jpg)