GoogleChrome / GoogleChrome/lighthouse

Brainstorm: opportunities to improve main thread

Open
#4,925 5 comments 0 reactions 1 assignee Claimed by @paulirish View on GitHub
loading-perf new_audit P1.5 question
Dominant language
JavaScript
Stars
30.8k
Forks
9.8k
Avg merge
1d 20h
Merged PRs (30d)
19

Description

Right now we do have diagnostics which summarize some main thread activity (`main thread breakdown` and `bootup time`), but we don't have any targeted opportunities regarding interactivity.

It'd be nice to help the users figure out how to improve the health of their main thread.

----

Few general approaches:

1. Do less work
- Don't do the work at all (Find needless stuff and nuke it)
- Do the same work faster. (Profile it and speed it up.)
- Do the work off the main thread.
1. Split up long tasks.
1. Do the work in downtime
* Defer work till later, after TTI
* Do work earlier, so TTI doesn't get pushed out

Maybe we can develop some heuristics to create specific suggestions?

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.