-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Brainstorm: opportunities to improve main thread #4925
Comments
maybe it's an idea to push people to Webworkers? By checking if tasks touch the dom? |
|
I don't think we can safely assume this. Non-visual components could be low in the tree, |
Maybe we could check how much % of JS is actually run on audited page and give a hint that X % is parsed and compiled without effect. Splitting up large bundles could be a major benefit for non-SPA apps on low end devices. https://github.com/GoogleChrome/puppeteer/blob/master/docs/api.md#class-coverage should provide necessary information for this approach. edit: Code splitting is good practice for SPA, too. For example webpack recommends https://webpack.js.org/guides/code-splitting/ |
We think @paulirish would be a great candidate to tackle this new audit, tentatively called "all of Lighthouse" ;) |
Right now we do have diagnostics which summarize some main thread activity (
main thread breakdown
andbootup 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:
Maybe we can develop some heuristics to create specific suggestions?
The text was updated successfully, but these errors were encountered: