Looking for a way to determine if the browser can handle three.js? I came across using detector.js provided by three.js with this line of code to check if WebGL or canvas is supported:
renderer = Detector.webgl ? new THREE.WebGLRenderer() : new THREE.CanvasRenderer();
This is only part of the solution, though. CanvasRenderer may not work on all browsers depending on what you're trying to accomplish. For example, the canvas example in three.js doesn't function properly on IE9, even though it's supposed to support canvas (http://caniuse.com/canvas).
I'm looking for a way to test if a browser supports the example code automatically without having to individually test each one and provide an alternative option if they don't.
If you have any ideas, please share them. Thanks in advance!