Is there any plan to work on very lightweight wasm builds optimized for web?
There are no plans to work on a "special" lightweight version of Godot for HTML5 exporting (for Godot 4.0 at least). That said, you can compile optimized HTML5 export templates with unneeded features disabled. Godot 3.2.4 will also add support for link-time optimization when compiling HTML5 export templates (use_lto=yes
), making export templates faster and smaller. (The official HTML5 export templates will also be compiled with LTO enabled.)
And as always, remember to serve the .wasm and .pck files over a host that supports on-the-fly gzip or Brotli compression :) Ideally, you should use precompressed Brotli files for those as these files are static.