w3c / resource-timing

Resource Timing
https://w3c.github.io/resource-timing/
Other
119 stars 35 forks source link

InitiatorType for module scripts #346

Open yoavweiss opened 1 year ago

yoavweiss commented 1 year ago

It seems like the initiatorType for module script preloads is currently tested to be "other"

Would be good to define it to be either more meaningful ("script" or "module script") or more consistent ("link" like other <link> based resources)

clelland commented 1 year ago

The spec currently says that this should be "module" If switching to something like "module script", then this needs to be defined in HTML first, and aligned with the list in fetch as well.

yoavweiss commented 1 year ago

HTML's set up the module script request doesn't set an initiatorType on the request. We should modify it to indicate "script".