[whatwg] Script preloading
dhtmlkitchen at gmail.com
Sun Jul 14 15:12:59 PDT 2013
On 7/10/13, Jake Archibald <jaffathecake at gmail.com> wrote:
> On 9 July 2013 22:31, Garrett Smith <dhtmlkitchen at gmail.com> wrote:
>> On 7/9/13, Ian Hickson <ian at 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"
>> Why limit "depends" to be used by only scripts to refer only to other
>> 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
More information about the whatwg