coderef

Branch hinting (WebAssembly)Baseline · Newly available

Branch hints in WebAssembly allows a browser to optimize performance when a branch is a likely to take a specific path.

Works in the latest version of every major browser, but older devices may not support it yet. Baseline since Feb 24, 2026.

Browser support

DesktopChrome
1–136Not supported
137+Supportedsince May 27, 2025
Current: 155
Edge
12–136Not supported
137+Supportedsince May 29, 2025
Current: 154
Firefox
1–147Not supported
148+Supportedsince Feb 24, 2026
Current: 157
Safari
1–15.6Not supported
16+Supportedsince Sep 12, 2022
Current: 27
MobileChrome Android
18–136Not supported
137+Supportedsince May 27, 2025
Current: 155
Firefox Android
4–147Not supported
148+Supportedsince Feb 24, 2026
Current: 157
Safari iOS
1–15.6Not supported
16+Supportedsince Sep 12, 2022
Current: 27

How to use

Every current browser supports this, but it only became Baseline on Feb 24, 2026. Use it as a progressive enhancement, or keep a fallback if you support older devices.

Example

Full syntax and examples are on MDN — see the links below.

Feature detection

There’s no simple runtime check for this feature; rely on the support table and test in your target browsers.