Skip to content

Commit

Permalink
feat: getDetails to used in table
Browse files Browse the repository at this point in the history
  • Loading branch information
hrenaud committed Jun 14, 2024
1 parent 4cba2f1 commit 906e7e2
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lighthouse-plugin-ecoindex/utils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,8 @@ export async function getLoadingExperience(
const devtoolsLog = artifacts.devtoolsLogs[Audit.DEFAULT_PASS]

const records = await NetworkRecords.request(devtoolsLog, context)
const { numericValue: totalByteWeight } = await TotalByteWeight.audit(
artifacts,
context,
)
const { numericValue: totalByteWeight, details: totalByteDetails } =
await TotalByteWeight.audit(artifacts, context)

let totalCompressedSize = 0
let requestCount = 0
Expand Down Expand Up @@ -67,6 +65,7 @@ export async function getLoadingExperience(
nodes: domSize,
requests: requestCount,
size: totalByteWeight,
sizeDetails: totalByteDetails,
}
}
const ecoIndexScore = getEcoindexResults(
Expand Down

0 comments on commit 906e7e2

Please sign in to comment.