W3C home > Mailing lists > Public > public-web-perf@w3.org > January 2012

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

From: Andy Davies <dajdavies@gmail.com>
Date: Sat, 7 Jan 2012 09:25:32 +0000
Message-ID: <CABbusA+LmLTRfa0w-2fZKiX_XF4w9Gw1ea9F7FdnPcGo4gXfbw@mail.gmail.com>
To: public-web-perf@w3.org
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

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