WebGL default scene load time and performance

Over the past week I have been working taking an already existing Unity Web project and building it for WebGL. However I have ran into a couple concerning things during my tests. I tried 3 different builds, One that had an empty scene with a cube, another with an empty scene and a 3d model, and a final scene that contained my previous app.

All of these scenes contained the following optimizations

  • no audio
  • optimization level Fastest
  • no exceptions
  • using stripping
  • GZip on the server
  • Quality settings low

With all of this the fastest first run load I could get was 10-13 seconds. After the initial load the refresh was loading in ~5 seconds.

So now I propose my questions.
Is there anyone that has been able to get a 5-10 mb build to load in under 5 seconds the first time around? The build I am testing loads that fast in WebPlayer
Are there any upcoming optimizations or changes in future unity releases that should alleviate these issues? If so what would be the timeline for these changes?

For first time load, you have the actual file download time + cost of Javascript parsing and other stuff during loading.
Subsequent runs of the game do not need to download the game data files, so you only pay for the parsing, which can take a few good seconds.

This was mentioned a few times in the past by the Unity dev dude @jonas-echterhoff_1

I think that different browsers behave differently (e.g: Chrome vs. Firefox), but this is something that they’re still aiming to improve with new releases.

There is the caching option it won’t improve the initial loading time but should mean that returning players get a much faster loading time.

That’s for the responses. I forgot to mention I have turned on the caching option and with that I can get a second load in about 5 seconds. The problem right now with the client is that initial load.