Detect WebGL support

Explore in the sandboxView live

A WebGL-enabled browser is a requirement of the ArcGIS API for JavaScript.This sample shows how to detect if the browser has WebGL enabled, and show a message for browsers that don't.

To test this sample, temporarily turn off WebGL:For example, in Firefox, type "about:config" in URL bar, search for "webgl.disabled" and turn it to true.

To test if your browser has WebGL enabled, you can try or

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.