[whatwg] Script preloading
Ryosuke Niwa
rniwa at apple.com
Tue Sep 3 11:27:44 PDT 2013
On Sep 3, 2013, at 3:45 AM, Jake Archibald <jaffathecake at gmail.com> wrote:
> On 31 August 2013 00:04, Ryosuke Niwa <rniwa at apple.com> wrote:
>
>> It'll be much harder to implement a new dependency API that replies on CSS
>> selectors if we care about the performance at all.
>>
>
> Where does the performance issue come from? It would only need to be
> resolved once on node creation or insertion into the document (the latter
> of the two). It's only used for execution, downloads can still be triggered
> without resolving the selectors (eg, by a pre-scanner).
>From the fact selector matching is slow. I'm opposed to adding selector dependency unless there is a very important use case that can't be addressed by referring to a script by an element id or a script filename.
- R. Niwa
More information about the whatwg
mailing list