KHR_parallel_shader_compile WebGL extensionLimited availability
The KHR_parallel_shader_compile extension for WebGL 1.0 and 2.0 contexts checks the status of shader compilation without blocking the runtime.
Not yet supported in all major browsers — check the table and provide a fallback.
Browser support
DesktopChrome
1–75Not supported
76+Supportedsince Jul 30, 2019
Current: 155Edge
12–18Not supported
79+Supportedsince Jan 15, 2020
Current: 154Firefox
✕Not supportedup to 157
Current: 157Safari
1–14Not supported
14.1+Supportedsince Apr 26, 2021
Current: 27MobileChrome Android
18–75Not supported
76+Supportedsince Jul 30, 2019
Current: 155Firefox Android
✕Not supportedup to 157
Current: 157Safari iOS
1–14Not supported
14.5+Supportedsince Apr 26, 2021
Current: 27How to use
Not supported in Firefox, Firefox Android. Use feature detection below and provide a fallback (or a polyfill) for those browsers.
Example
Full syntax and examples are on MDN: KHR parallel shader compile.
Feature detection
JS · check before using
if ("KHR_parallel_shader_compile" in globalThis) {
// KHR_parallel_shader_compile is available
} else {
// load a polyfill or use a fallback
}