WEBGL_compressed_texture_s3tc WebGL extensionLimited availability
The WEBGL_compressed_texture_s3tc extension for WebGL 1.0 and 2.0 contexts adds S3TC compressed texture formats to compressedTexImage2D() and compressedTexSubImage2D().
Not yet supported in all major browsers — check the table and provide a fallback.
Browser support
DesktopChrome
1–25Not supported
26+Supportedsince Mar 26, 2013
Current: 155Edge
12+Supportedsince Jul 29, 2015
Current: 154Firefox
1–21Not supported
22+Supportedsince Jun 25, 2013
Current: 157Safari
1–7Not supported
8+Supportedsince Oct 16, 2014
Current: 27MobileChrome Android
✕Not supportedup to 155
Current: 155Firefox Android
✕Not supportedup to 157
Current: 157Safari iOS
1–7Not supported
8+Supportedsince Sep 17, 2014
Current: 27How to use
Not supported in Chrome Android, Firefox Android. Use feature detection below and provide a fallback (or a polyfill) for those browsers.
Example
Full syntax and examples are on MDN: WEBGL compressed texture s3tc.
Feature detection
JS · check before using
if ("WEBGL_compressed_texture_s3tc" in globalThis) {
// WEBGL_compressed_texture_s3tc is available
} else {
// load a polyfill or use a fallback
}