Hi, I have a problem with a very long preload of a WebGL assembly. The size of the assembly without compression is 40-45 MB. With compression 11-14 MB. Target platforms are phones, on them the loading takes 20-25 seconds. I have tried different compression methods and different hostings. I also use decompression fallback.
Is there a way to increase the speed of preloading the assembly? Maybe I should try a more suitable hosting for the assembly (I am currently using https://app.netlify.com/) or use decompression directly on the hosting, but I do not know how to implement this. I would be glad to hear your advice on optimizing the loading time
This was a time before the Unity logo appeared. It seems to me that the time that was previously spent on loading the webgl assembly is now spent on decompression
This goes without saying but 40MB in my opinion too large. I would consider trying to optimize the game if you have the ability to. You still take the decompression hit with sizes like that.
This may not be a direct answer to your question as you’re talking about assemblies, but the best option you have is to stream in your assets when needed to bring your initial pack size down: Unity - Manual: AssetBundles (unity3d.com) / put your streamables behind a CDN.