7 Web Applications
This chapter will help you understand how WebAssembly interacts with the DOM through JavaScript. Although it might seem cumbersome, it’s a necessary evil to understand WebAssembly and its strengths and weaknesses. If you’re using a WebAssembly toolchain, you need to know how much additional code that toolchain will generate as JavaScript glue code. From this point forward, most of the examples will run from a web page instead of using node
from the command line.
We’ll begin by creating a simple static web server using Node.js. WebAssembly web applications cannot be loaded directly from the filesystem in a web browser; ...
Get The Art of WebAssembly now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.