On Wed, May 1, 2019 at 12:00 PM Jack Dale <[email protected]> wrote:

> Which type of webhosting do I need to run an Emscripten project, what are
> the requirements?
>

Most web hosting should work as long as you've got the space, but there are
some configuration options that may need to be set for ideal performance. A
VPS will give you full ability to configure these options if they're not
already set, whereas you might have to check documentation or request
special service on shared hosting.

* You'll want to make sure .html, .js, .mem, and .wasm files use
transparent gzip compression for best download times. WebAssembly is
reasonably compact but doesn't provide compression on its own, and gzip
will often cut download time in half or more.
* .wasm files need to be sent with application/wasm Content-Type for
streaming compilation to work; otherwise the file may be fetched twice and
compilation may take longer.

You can check if these are working in-place through the 'network' panel in
developer tools of your browser; the inspectors should indicate the
Content-Encoding and Content-Type response headers.

-- brion

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to