The commenter's proposed solution was WASM. Wasm doesn't solve the issues in this post. What does this post talk about:
- serving content from the edge (wasm doesn't do anything there) - asset optimization (wasm doesn't help)
- pre-rendering complex pages to static HTML+css (wasm doesn't help)
More broadly, minimizing network trips, pre-fetching data, etc. etc. these are all things where Wasm won't help any more or less than JS.