Adding out-of-band dependencies for a module

Rick Waldron waldron.rick at
Tue Aug 12 14:51:55 PDT 2014

On Mon, Aug 11, 2014 at 8:06 PM, Ian Hickson <ian at> wrote:

> So I'm trying to figure out how to spec the HTML spec's Loader.
> One of the things that we're likely to add as part of this is a generic
> dependency system. Authors have long asked to be able to do things like
> define that their scripts depend on CSS or images or whatnot. If we
> introduce a global attribute for this is HTML, say needs="", then it will
> be possible to do something like:
>    <script type=module needs="foo" href="foo.js"></script>
> ...where "foo" is an ID to some other element.
> So far so good.

Unless the module has >1 dependency.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list