[whatwg] Challenging canvas.supportsContext

Boris Zbarsky bzbarsky at MIT.EDU
Wed Jun 19 13:24:47 PDT 2013


On 6/19/13 4:22 PM, Brandon Benvie wrote:
> The point of using Modernizr or something like it is to detect
> availability of features on page load, and then conditionally load
> polyfills/alternate fallback implementations. It specifically does need
> to do eager detection to be useful. It can't wait until the first usage
> to do feature detection; it needs to be done up front when preparing
> dependencies for the main application.

I see.  For this use case, the current definition of supportsContext is 
of limited utility, unless you make some assumptions about behavior that 
the spec does not require....

-Boris



More information about the whatwg mailing list