On Wed, Jun 19, 2013 at 11:17 AM, Benoit Jacob <[email protected]> wrote: > So let's look at the naive application usage pattern for supportsContext: > > if (canvas.supportsContext("webgl")) { > context = canvas.getContext("webgl"); > } > > The problem is that the same can be achieved with just the getContext call, > and checking whether it succeeded.
The problem that supportsContext() solves, and which was brought up repeatedly during the drive to add this, is that spinning up contexts can be expensive. ~TJ
