Resource-Summary missing from PageSpeed API

94 views
Skip to first unread message

Jason Bauman

unread,
Aug 21, 2023, 3:36:56 PM8/21/23
to Chrome UX Report (Discussions)
I have a script I use to run the pagespeed audit. one of the valuable items we pull are the resource summaries (How many font files there are on a page and how many bytes of font files there are, for example).  This is found under the "resource-summary" audit in lighthouse. 

However, sometime in the past month (the last time I tried using script was 7/17 and it worked then) the API changed and the resource-summary information is not there anymore. 

For example, if I wanted to get the number of font resources I could extract this path:

output['lighthouseResult']['audits']['resource-summary']['details']['items'][4]['requestCount']

And to get the size of the files:
output['lighthouseResult']['audits']['resource-summary']['details']['items'][4]['transferSize']

However, the resource-summary audit does not appear to exist. has anyone figured out why this was removed? 

Paul Irish

unread,
Aug 21, 2023, 4:45:25 PM8/21/23
to Chrome UX Report (Discussions), Jason Bauman
Yeah, this shipped as part of the update to Lighthouse 11.0


You can reconstruct the resource-summary data from the network-requests audit:

Apologies for disrupting your script.

Jason Bauman

unread,
Aug 24, 2023, 11:23:01 AM8/24/23
to Chrome UX Report (Discussions), Paul Irish, Jason Bauman
THanks for the link and the confirmation Paul. 

Sad to see it go, but I was able to rebuild it in Python so it's back up and running. 

Reply all
Reply to author
Forward
0 new messages