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

[Resource Timing] Feedback on the IDL

From: James Simonsen <simonjam@chromium.org>
Date: Thu, 19 May 2011 12:34:16 -0700
Message-ID: <BANLkTimYj68g-kLsbXxqWdMi+0RO5+b+qg@mail.gmail.com>
To: public-web-perf <public-web-perf@w3.org>
I took a pass through the IDL for Resource Timing. I have a few suggestions:

1. For the PerformanceResourceTimingList, I think we should copy the IDL
from another list type. An example is StyleSheetList from here:

http://www.w3.org/TR/1999/WD-DOM-Level-2-19990923/stylesheets.html

Namely, we should have a function called item() that returns the given entry
in the list.

2. For onbufferfull, I think the name should include Resource Timing
somewhere, so it matches the functions.

Alternatively, have we considered putting all of the Resource Timing
functions in their own namespace under performance? It would cut down on the
verbosity.

3. For getResourceTimingsByLocation, I think we should use a DOMString for
the argument instead of a Location. That seems to be how other places pass
in URLs, like window.open(). The variable name should be url instead of
location too.

James
Received on Thursday, 19 May 2011 19:34:41 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 19 May 2011 19:34:42 GMT