I am developing a chrome extension that could inform the user of the WebGL usage in the current tab. This helps me to estimate the usage of WebGL on modern websites nowadays.
(I think a trivial approach to this question is to check whether a <canvas>
tag is used. But things are getting complicated regarding machine learning (ML) scenarios. Web ML frameworks utilize WebGL with a custom GLSL to accelerate computing. Maybe some static/dynamic analysis of the JavaScript file is needed?)