On 7/10/13, Jake Archibald <jaffathec...@gmail.com> wrote: > On 9 July 2013 22:31, Garrett Smith <dhtmlkitc...@gmail.com> wrote: > >> On 7/9/13, Ian Hickson <i...@hixie.ch> wrote:<script id="jquery" >> src="jquery.js" async></script> >> > <script id="shims" src="shims.js" async></script> >> > <script dependencies="shims jquery" src="myscript.js" >> async></script> >> > >> >> Why limit "depends" to be used by only scripts to refer only to other >> scripts? >> >> If you put <link depends=idref> on style then stylesheet evaluation >> could be deferred, too. >> > > I like this idea and want to start a family with it. > Sorry, I didn't get that.
A 'depends' attribute would work like the 'for' attribute of SCRIPT element in older versions MSIE, with a difference: if (any of) the resource(s) has a fetching algorithm associated, the event does not fire until that has successfully completed. Also, depends=[DomTokenList] could be, instead of depends=IDREF -- Garrett Twitter: @xkit personx.tumblr.com