[Resource Timing] Opt in vs Opt Out and initiatorType attribute

Hi All,

I've got some ideas on how I want to use the Resource Timing API but
also got a couple of questions...

I currently want to use the RT API in two ways:

1. Create a bookmarklet that creates a visualisation of the waterfall
and offers the ability to save it as a HAR file e.g. on jdrop etc.

2. Create a 'beacon' that can be embedded in a page and reports back
the waterfall to a host - might not use it for all visitors e.g. could
specify that it's only invoked for certain UAs or when page load time
is slow.

What's the status of the thinking on Opt out vs Opt in default?

It isn't a problem for #1 as the bookmarklet user is that one in
control of the choice but opt in makes #2 very difficult (presume the
whole issue of opt out/in is around privacy?)


In the latest editor's draft of the spec The initiatorType attribute
has changed from an integer to a string, can anyone explain the
thinking behind this (it's more for my curiosity, but I see the
attribute in PerformanceNavigation spec are integers)


I'm aware that actual implementations of ResourceTiming are some way
off (checked both the Chrome and Firefox source trees) so I've started
creating a set of mock objects to work with (their values are
initiated from a HAR file) - if it's of interest to anyone will put it
on GitHub in the next few weeks.

Thanks for your work on this...

Cheers

Andy

Received on Monday, 9 January 2012 10:14:04 UTC