Adding out-of-band dependencies for a module
ian at hixie.ch
Tue Aug 12 17:14:49 PDT 2014
On Tue, 12 Aug 2014, Rick Waldron wrote:
> On Mon, Aug 11, 2014 at 8:06 PM, Ian Hickson <ian at hixie.ch> wrote:
> > 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.
That's no problem, we just define the attribute as taking a
space-separated list of IDs.
Ian Hickson U+1047E )\._.,--....,'``. fL
http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,.
Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.'
More information about the es-discuss