Intent to unship: asm.js optimizations

494 views
Skip to first unread message

Ryan Hunt

unread,
Dec 10, 2025, 1:02:46 PM (5 days ago) Dec 10
to dev-pl...@mozilla.org
As of Firefox 148 I intend to disable asm.js optimizations for all platforms.

asm.js [1] is the predecessor to WebAssembly, and has been supported since
Firefox 22 [2].

Removing asm.js optimizations will simplify our compilers and runtime,
reducing our attack surface for security bugs and improve developer velocity.

asm.js is a subset of JS code, and so all asm.js content will continue to work
using our normal JS optimizations. Performance of asm.js content may change
as a result.

We observe about 0.2% of page loads contain an asm.js script. We've conducted
manual tests and a release A/B experiment on the performance impact and
believe it to be acceptable.

Users of asm.js can upgrade to use WebAssembly for improved performance,
code size, and stability.

Bug to remove code (for a later release): https://bugzilla.mozilla.org/show_bug.cgi?id=ragnarok




Reply all
Reply to author
Forward
0 new messages