W3C home > Mailing lists > Public > public-web-perf@w3.org > May 2013

Re: navigationStart in NavigationTiming

From: Arvind Jain <arvind@google.com>
Date: Wed, 1 May 2013 14:48:53 -0700
Message-ID: <CAOYaDdME57YwiRph+Au2iVKDXhC8EcmgVeiYLNzaQiYNGay+KA@mail.gmail.com>
To: Boris Zbarsky <bzbarsky@mit.edu>
Cc: Jatinder Mann <jmann@microsoft.com>, "public-web-perf@w3.org" <public-web-perf@w3.org>
Hi Boris,

So I assume you are saying the case where there is no previous document
does exist, and therefore we should not change the definition of
unloadEventStart and unloadEventEnd attributes, and we can change
navigationStart attribute's definition to be:
navigationStart attribute
This attribute must return the time immediately after the user agent
finishes prompting to
unload<http://www.w3.org/TR/html5/browsers.html#prompt-to-unload-a-document>
the
previous document. If there is no previous document and the current
document is "about:blank", this attribute must return the time when the
document was created.

I actually feel it's better to just not mention the case of "there is no
previous document" and current document = about:blank.

Please also look at the processing model for navigation here:
http://www.w3.org/TR/html5/browsers.html#navigate - it simply assumes there
is a previous document (Step 9) - I feel it is appropriate for us to just
refer to the time after Step 9 here to be the time for navigationStart as
opposed to putting in more logic in Navigation Timing specification.

What would be the ideal definition of these 3 attributes according to you?

Thanks,
Arvind



On Wed, May 1, 2013 at 2:02 PM, Boris Zbarsky <bzbarsky@mit.edu> wrote:

> On 5/1/13 4:59 PM, Arvind Jain wrote:
>
>> So what do you suggest? I assume about:blank is not relevant to the spec
>> as it has no Javascript on it
>>
>
> Um...  It's trivial to run script in it, and web pages do it fairly often,
> actually.  So this situation does need to be defined.
>
> For the initial about:blank we could just define navigationStart to be the
> time when it was created, I guess.
>
> -Boris
>
Received on Wednesday, 1 May 2013 21:49:20 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:04:35 UTC