GoogleChrome / GoogleChrome/lighthouse

Lantern: Use onload handlers to create dependencies for trace events

Open
#4,600 7 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.