[WebGL] Splash Screen Unity Logo results in 2 Mb or more of build size when building the Player (#20558)

Topic automatically created to discuss [WebGL] Splash Screen Unity Logo results in 2 Mb or more of build size when building the Player

This may not seem like a big deal. Especially for Standalone (desktop games).

But, generally speaking the Web GL build is a build for the Web.
It is crucial for the build to be trimmed down in size as much as possible for faster loading time.

For perspective: my current build is around 7MB. I diligently optimize textures, shaders, etc.
Yet Unity logo takes 2.7MB of the 7MB.
That’s around 35% of my whole game size.

I second what Kreso said. This is near 30% of my build size

If you are not using the splash screen then you also need to disable the Show Unity logo option to remove the logo from the build otherwise it will still be included. We have a SplashScreen API that can be used to draw the splash screen when it’s disabled so we still need to keep the logo included. If you check the build report you should see it explain as to why the logo is included in the build. Note the logo has always been included but we recently made it optional so it now shows up differently in the build report and appears to be adding more to the build, it was always adding this much but was not visible.

We’ll investigate the bug report, but it’s probable that, at most, it will result in a warning within the player settings indicating the logo’s inclusion. Therefore, there’s no need to wait for a fix.

Could webgl builds download the logo instead of adding it to the build in the interest of file size?

Karl Jones how do you disable the inclusion of the splash screen on Unity 2022.3.13? I have a Pro license and under Player Settings → Splash Screen have “Show Splash Screen” unticked yet as this bug states in the build logs it says the splash screen is being included and adding 2.7mb to my build unnecessarily!