-
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
Update programmatic example to delete results.artifacts #4346
Comments
Thank you for reporting! Can you please share a website for which you are getting such huge reports? I personally, haven't seen a report file larger than 1,5M. Lighthouse version used may also come in handy. I did some quick analysis of our report files and the static part is ~150Kb, everything else goes into the Looking into
Static part can also be slimmed down (we can minify js/css/html), but improvement here will be way less significant than what can be done with I can take a stab at points 1 and 2. |
Thanks for the analysis @kdzwinel let's add some of these to #4333 since there are some reasonable reliances on the duplication at the moment :) @12d if you're using Lighthouse programmatically from node and building the report yourself, it's likely that you're forgetting to delete the |
Hey @patrickhulce , |
@ganlanyuan if you're just trying to get the same result as the CLI and get a regular HTML report you can follow its lead lighthouse/lighthouse-cli/run.js Lines 170 to 175 in 278d1e7
|
@patrickhulce Thanks! |
Yes that's the JSON results from which the HTML is rendered, so there's probably not any more immediate win. #4333 tracks several improvements to reduce the size but will be breaking changes (since we'll be removing properties) |
I checked every 'report.html', file size of each report is larger than 20M bytes. It is impossible to serve on websites. Is there any way to shrink the size?
The text was updated successfully, but these errors were encountered: