Re: @supports-like feature on <script> tag

It probably can be solved with ECMAScript 6 modules feature, which supports
importing modules dynamically. But I guess it is still preferable to have
similar feature be supported natively.

- Xidorn

On Fri, Feb 6, 2015 at 9:44 AM, Xidorn Quan <quanxunzhen@gmail.com> wrote:

> As far as we are planning to provide low-level APIs so that libraries can
> do more polyfill before a feature gets standardized, I propose that we add
> an attribute to <script> tag similar to @supports rule in CSS, which
> enables the UA to avoid loading modules which try to polyfill features it
> supports.
>
> However, the @supports rule provides a positive matching, while it'd be
> better to have a negative matching syntax here. In addition, it probably
> should not be limited to CSS features.
>
> Any ideas?
>
> - Xidorn
>

Received on Thursday, 5 February 2015 22:57:30 UTC