What alternative do you propose to Javascript for interactive functionality on a web page?
ecmascript?
we could always use wasm, right?
WASM doesn't have a DOM API, as far as I know.
It does not. It interacts with browser APIs (not just dom) via JavaScript. And it needs to load a big binary first.