# `Alternera.Plugins.Javascript.Application`
[🔗](https://github.com/10e-ab/alternera-wasm/blob/v0.9.1/alternera_plugin_javascript/lib/alternera/plugins/javascript/application.ex#L1)

Compiles the JavaScript module once when the package starts
(`PluginWasmFramework.Modules.load/2`): compiling the interpreter takes a
few hundred milliseconds, which would otherwise fall on the first step
that runs. A module that fails to compile is logged there and fails each
step that runs it; the application starts regardless, so the rest of the
proxy does.

The plugin is experimental, installed only with the proxy's
`:experimental_plugins` set, so a node without it does not compile a
module no step can use. Where the flag is set later than the package
starts (the package's own tests, a test suite that puts it), the module
is compiled on the first call instead (`Modules.load/2` compiles once).

---

*Consult [api-reference.md](api-reference.md) for complete listing*
