---
title: "Why is WebAssembly a second-class language on the web?"
description: "WebAssembly remains second-class on the web because it can only load code and reach Web APIs through JavaScript."
url: "https://swe.quest/articles/why-is-webassembly-a-second-class-language-on-the-web-36ba94a05082ce89"
canonical: "https://hacks.mozilla.org/2026/02/making-webassembly-a-first-class-language-on-the-web/"
source: "Mozilla Hacks"
published: "2026-02-26"
difficulty: "medium"
kind: "Opinion"
reading_minutes: 13
tags: ["webassembly","browsers","language-design","performance"]
---

# Why is WebAssembly a second-class language on the web?

A post on [Mozilla Hacks](https://swe.quest/sources/mozilla-hacks.md), published 2026-02-26, 13 min read, Opinion. Original: [https://hacks.mozilla.org/2026/02/making-webassembly-a-first-class-language-on-the-web/](https://hacks.mozilla.org/2026/02/making-webassembly-a-first-class-language-on-the-web/)

## Summary

WebAssembly remains second-class on the web because it can only load code and reach Web APIs through JavaScript. That forces arcane instantiation boilerplate, language-specific glue code from tools like wasm-bindgen and embind, JS-centric documentation, and real runtime overhead. A 2020 TodoMVC experiment with the Dodrio Rust framework found that removing JS glue cut DOM-update time by 45%. The esm-integration proposal, being implemented in Firefox, simplifies loading, and the WebAssembly Component Model with WIT interfaces is proposed as a standardized artifact that could let Wasm call Web APIs directly with no JavaScript in between.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [WebAssembly](https://swe.quest/tags/webassembly.md) (Languages)
- [Browsers](https://swe.quest/tags/browsers.md) (Web & mobile)
- [Language design](https://swe.quest/tags/language-design.md) (Compilers & runtimes)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)

## Prerequisites

- WebAssembly basics ([easy posts on WebAssembly](https://swe.quest/tags/webassembly.md?difficulty=easy))
- JavaScript modules ([easy posts on JavaScript](https://swe.quest/tags/javascript.md?difficulty=easy))
- Web APIs and the DOM ([easy posts on API design](https://swe.quest/tags/api-design.md?difficulty=easy))

## Keywords

WebAssembly Component Model, WIT, esm-integration, wasm-bindgen, embind, Dodrio, Firefox

## Related posts

- [Introducing the WebAssembly JavaScript Promise Integration API](https://swe.quest/articles/introducing-the-webassembly-javascript-promise-integration-api-b17a598677f4452f.md): V8 · 2024-07-01 · Medium · 11 min read · WebAssembly, JavaScript, C & C++, Browsers, Concurrency
  JSPI lets WebAssembly code written against synchronous APIs call asynchronous Web APIs.
- [Five ways of looking at Jco, Part 1](https://swe.quest/articles/five-ways-of-looking-at-jco-part-1-22480db6180de743.md): Bytecode Alliance · 2026-03-19 · Easy · 3 min read · WebAssembly, JavaScript, Developer tools, Runtimes & VMs
  Jco, the Bytecode Alliance's JavaScript WebAssembly multi-tool, is best understood as a layered stack.
- [Bringing Javascript to WebAssembly for Shopify Functions](https://swe.quest/articles/bringing-javascript-to-webassembly-for-shopify-functions-80a81868faf1489b.md): Shopify Engineering · 2023-02-09 · Medium · 16 min read · WebAssembly, JavaScript, Runtimes & VMs, Rust, Serverless
  Shopify runs JavaScript in Shopify Functions by compiling the QuickJS interpreter to WebAssembly/WASI via Javy.
- [A new way to bring garbage collected programming languages efficiently to WebAssembly · V8](https://swe.quest/articles/a-new-way-to-bring-garbage-collected-programming-languages-efficiently-to-667c409700cf29b4.md): V8 · 2023-11-01 · Hard · 20 min read · WebAssembly, Memory management, Runtimes & VMs, Compilers
  Garbage-collected languages like Java, Kotlin, Dart, Python and C# can reach WebAssembly in two ways: compile an existing language VM to linear-memory WasmMVP, or lower the language's objects onto WasmGC structs and arrays managed by the host VM's garbage collector.
- [Intro to Wasm in Deno](https://swe.quest/articles/intro-to-wasm-in-deno-e9e470adfcfab289.md): Deno · 2025-01-28 · Medium · 4 min read · WebAssembly, Rust, JavaScript
  Deno 2.1 lets Wasm modules be imported directly like JavaScript modules, with their exports understood and typechecked.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
