HTML5 needs ~40s to load

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By ComanderKai77
:warning: Old Version Published before Godot 3 was released.

I’ve created a small Pong game and exported it for HTML5.
But when I open the site in my browser it needs ~40s to load the game.
Is there a way to optimize this?
I am using the beta 2.1 version.

I suspects the engine’s size and your connection speed is what makes loading slow. As a binary executable, Godot weights around 25 Mo, so it’s like downloading that + game assets when you play in the browser. It will eventually be faster if the cache of your browser memorizes the file (only if it doesn’t changes on the server).

Zylann | 2016-07-16 12:41

You are right. My the connection to mi Raspberry Pi is too slow.
In a VM it loads in 3s.

ComanderKai77 | 2016-07-16 13:03