Hacker News new | ask | show | jobs
by pengaru 1304 days ago
emscripten gets pretty close via webassembly, you can embed all your assets... but it takes awhile to load before anything's happening when done that way.
1 comments

Flash also took time to load. The sites used loaders with progress bars for larger flash apps as well.
But it supported progressive loading. You could load only the first level and then load the next on-demand
You can still do that with wasm by splitting the code. You need to loop through js to connect them, but for things like levels, you can likely do that or just memcpy between those environments.