GoogleChrome / GoogleChrome/lighthouse
Consider JS evaluation costs in efficiency audits
Open
needs-design
needs-investigation
P2
simulation / lantern
- Dominant language
- JavaScript
- Stars
- 30.8k
- Forks
- 9.8k
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 19
Description
currently, the byte efficieny audits treat every byte as equal, only measuring the network cost. However, JavaScript bytes are also costly in terms of CPU.
For example:
The `unused-javascript` audit points out code that is not executed - but the code is still *parsed*.
The (in progress) `bundle-duplication` audit points out extra code that is *parsed* and *compiled* (correlating w/ `unused-javascript` would be needed to confirm that last bit, but it may be OK to assume all duplicated code is compiled).
Needs much investigation.
Contributor guide
Assessment
This issue has not been assessed yet.