Open connorjclark opened 1 year ago
TraceElements
might be a good home rather than a new gatherer.
For locating the node, it may make sense to remove ambiguity by adding the node ID to the trace event. Should be straightforward since the Element is still available when the trace event is emitted, similar to this change to EventTiming (s/target_/element_
): https://chromium-review.googlesource.com/c/chromium/src/+/3632661
I had been discussing taking this issue with Connor earlier, but unfortunately I don't believe I'll have time to commit to this. I know it's unassigned now, but feel free to assign this to someone else, thank you!
Much like the
user-timings
audit, aelement-timings
audit would surface moments when user-specified elements have rendered, using the Element Timing API.There's a trace we can extract for these timings. See:
ElementTimings
element-timings
NodeDetails
(so we can show them alongside the loadTime values).TraceElements
artifact. But the trace is missing that info, so let's just add the node details toElementTimings
.user-timings
which just reads the trace directly.