Re: [ResourceTiming] initiator types

On Thu, Jun 28, 2012 at 10:32 AM, James Simonsen <simonjam@chromium.org>wrote:

> On Wed, Jun 27, 2012 at 10:21 PM, Ojan Vafai <ojan@chromium.org> wrote:
>
>> On Wed, Jun 27, 2012 at 10:14 PM, Ojan Vafai <ojan@chromium.org> wrote:
>>
>>> Right. That's all I had in mind there. I suppose, by this definite it
>>> would also apply to Image(), which also seems fine to me.
>>
>>
>> Actually, Image() creates an img element, so perhaps it already falls
>> under the localName clause.
>>
>> On second thought, the current wording you have in the spec sounds good
>> to me. I don't see a problem with using "script" as the initiatorType for
>> XMLHttpRequests. No need to add any rules regarding JS constructor names.
>>
>
> I don't like that. I think XHRs should show up as XHRs. It's going to be
> useful for a website to collect timing info about XHRs and scripts
> separately from each other by using getEntriesByInitiatorType().
>

Oh, good point. Should we just special-case XHR?

Received on Thursday, 28 June 2012 18:14:26 UTC