resource-timing icon indicating copy to clipboard operation
resource-timing copied to clipboard

List of initiatorType types

Open Elchi3 opened this issue 2 years ago • 2 comments

As part of a project to update MDN's Performance API docs (https://github.com/openwebdocs/project/issues/62), I updated https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/initiatorType.

The Resource Timing spec contains a non-normative note listing initiatorType types: https://w3c.github.io/resource-timing/#dom-performanceresourcetiming-initiatortype. I believe a normative list of types is in the Fetch spec: https://fetch.spec.whatwg.org/#request-initiator-type. Is that correct?

If so, would it be a good idea to include the following types in the Resource Timing note?

  • body
  • early-hint (or early-hints, the Fetch spec and Chrome seem to diverge here.)
  • embed
  • font
  • link
  • object
  • ping

The Fetch spec doesn't include the following type but the Resource Timing note lists it. Is it defined elsewhere?

  • a
  • ~navigation~ (defined in Navigation Timing)

Elchi3 avatar Nov 25 '22 14:11 Elchi3

If so, would it be a good idea to include the following types in the Resource Timing note?

  • body
  • early-hint (or early-hints, the Fetch spec and Chrome seem to diverge here.)
  • embed
  • font
  • link
  • object
  • ping

@noamr - are all these types valid initiator type values? I'm somewhat surprised by some of them (e.g. "body" & "font")

yoavweiss avatar Dec 09 '22 12:12 yoavweiss

If so, would it be a good idea to include the following types in the Resource Timing note?

  • body
  • early-hint (or early-hints, the Fetch spec and Chrome seem to diverge here.)
  • embed
  • font
  • link
  • object
  • ping

@noamr - are all these types valid initiator type values? I'm somewhat surprised by some of them (e.g. "body" & "font")

Font face="..." Though I have to make sure...

Body background="..." For sure

noamr avatar Dec 09 '22 12:12 noamr