← Retour au blog
tech 20 May 2026

Saying Goodbye to asm.js: A New Era for the Web

With the rise of WebAssembly, asm.js is stepping down. Discover why this transition is crucial for web performance and how it shapes the future of web technologies.

Article inspired by the original source
Saying Goodbye to Asm.js ↗ spidermonkey.dev

Introduction

In 2013, Mozilla revolutionized the web with the introduction of asm.js, a technology that enabled near-native code execution speeds using only web technologies. Today, with the rise of WebAssembly (Wasm), asm.js is gradually stepping down, paving the way for a new era of web performance.

The Legacy of asm.js

Asm.js was an innovative response to the question: how can we run code at native speeds on the web? By using a strictly typed subset of JavaScript, asm.js allowed engines to recognize and compile code to native in real-time. This enabled projects like Unity and Unreal to be ported to the web, marking a major advancement for web technologies.

In 2013, the Epic Citadel demo was ported to the web in just four days thanks to asm.js. It was a landmark moment that proved the web could rival native application performance.

The Rise of WebAssembly

WebAssembly, introduced in 2017 with Firefox 52, was directly influenced by the success of asm.js. Offering even better performance and optimized binary size, WebAssembly has become the preferred choice for high-performance web applications.

Today, most projects that used asm.js have migrated to WebAssembly, which offers a much more advanced compilation pipeline. This provides developers with faster execution and smaller binaries.

Why Say Goodbye to asm.js?

The transition to WebAssembly is not just about performance. Maintaining asm.js alongside WebAssembly incurs maintenance costs and increases the potential attack surface in virtual machines. By disabling asm.js by default, Mozilla aims to streamline operations while encouraging developers to adopt WebAssembly.

The Future with WebAssembly

The asm.js compiler, known as OdinMonkey, is reaching its end. However, its legacy continues through BaldrMonkey, the optimized compiler for WebAssembly. This transition not only marks the end of an era but also the beginning of a new one, where WebAssembly reigns supreme.

For developers, this means faster, safer, and more efficient web applications. WebAssembly continues to improve, with features like threading and garbage collection further enhancing its capabilities.

Conclusion

Saying goodbye to asm.js is a step forward towards increased optimization of web performance. For developers, now is the time to embrace the opportunities offered by WebAssembly.

Let's discuss your project in 15 minutes.

asm.js WebAssembly Mozilla performance web development
Deepthix newsletter · 100% AI · every Monday 8am

An AI agent reads tech for you.

Our AI agent scans ~200 sources per week and ships the best articles to your inbox Monday 8am. Free. One click to unsubscribe.

Visit the newsletter page →

Want to automate your operations?

Let's talk about your project in 15 minutes.

Book a call