- From: Garrett Smith <dhtmlkitchen@gmail.com>
- Date: Sun, 14 Jul 2013 15:12:59 -0700
- To: Jake Archibald <jaffathecake@gmail.com>
- Cc: WHATWG <whatwg@whatwg.org>, travis.leithead@microsoft.com, Ian Hickson <ian@hixie.ch>, Kyle Simpson <getify@gmail.com>
On 7/10/13, Jake Archibald <jaffathecake@gmail.com> wrote: > On 9 July 2013 22:31, Garrett Smith <dhtmlkitchen@gmail.com> wrote: > >> On 7/9/13, Ian Hickson <ian@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
Received on Sunday, 14 July 2013 22:13:22 UTC