GoogleChrome / GoogleChrome/lighthouse

Consider JS evaluation costs in efficiency audits

Open
#10,089 1 comment 1 reaction 1 assignee Claimed by @connorjclark View on GitHub
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

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.