GoogleChrome / GoogleChrome/lighthouse
Lantern: Use onload handlers to create dependencies for trace events
Open
feature
P2
upstream-action-required
- Dominant language
- JavaScript
- Stars
- 30.8k
- Forks
- 9.8k
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 19
Description
When an image has an lengthy onload handler decode, we can connect that long task to the loading of the image. This would help with smoke testing our byte efficiency audits when using Lantern-based estimates too.
Brief investigation for onload:
* The parent event fired has `event.args.src_func: 'ImageNotifyFinished'`
* The first child event has `event.args.data.type: 'load'`, `event.name: 'EventDispatch'`
there's no URL unfortunately but we can probably connect it to an image resource based on timestamp
Contributor guide
Assessment
This issue has not been assessed yet.