There&#x27;s also the alternative of using C&#x2F;C++ for portability and performance, but without a huge engine runtime you&#x27;ll have to drag along.<p>There is no inherent size advantage of doing things in Javascript vs. cross-compiled to asm.js. For instance, three.js is 100kByte minified and compressed, that&#x27;s in the same ballpark as the (admittedly simple) demos here: <a href="http:&#x2F;&#x2F;floooh.github.io&#x2F;oryol&#x2F;" rel="nofollow">http:&#x2F;&#x2F;floooh.github.io&#x2F;oryol&#x2F;</a><p>Once you are over the static overhead for the C runtime and web-API-wrappers of roughly 30..50kByte, emscripten demos don&#x27;t grow much faster than minified and compressed Javascript code.<p>[edit: typos]