HTML5 Large Build Size

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Tens2018

I have been gone since early 2016. Back then the HTML5 build size of games was very large, many complained. Devs said Godot 3.0 should help, as it was to do list.

Now I am back, my question is has HTML5 build size been improved since then? Thank you.

:bust_in_silhouette: Reply From: eons

Build size improved a lot thanks to the use of webassembly instead of asm.js, but that also added limitations to the browsers that can use it, on top of the use of webgl 2 that seems to work right only on firefox.

3.1 will add WebGL 1 support back so all the browsers that support wasm will be able to run without issues.


There are also many ways to optimize the engine and package or use external assets.
Check the entries about web export and customization:

This handy guide for compressing files:
https://www.reddit.com/r/godot/comments/8b67lb/guide_how_to_compress_wasmpck_file_to_make_html5/

And this about customizing builds for size (is for 3.1 but most things should work on 3.0):