question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

New perf metric: Web bloat score

See original GitHub issue

Description of audit and audit category

Basically, it’s the (total bytes of the webpage) / (bytes of a screenshot of that webpage). It’s defined at https://www.webbloatscore.com/.

Explanation of how it’s different from other audits

No other metrics attempt to judge the efficiency of the bytes used.

What % of developers/pages will this impact (estimates OK, data points preferred)

It’s a perf metric… so nearly 100%.

How would the audit appear in the report?

Another perf metric. Maybe like this? image

How is the new audit making a better web for end users? (data points preferred)

The weight of a screenshot of the page isn’t typically considered, but serves as a nice reference point that everyone can appreciate. This metric is a lot easier to explain than our other perf metrics. And it addresses a unique measurement that isn’t covered by any existing metrics.

What is the resourcing situation (who will create the audits, maintain the audits, and write/maintain the documentation)

We’re interested in someone contributing this audit. We can help guide them. Once implemented, Lighthouse core team will maintain.

Do you envision this audit in the Lighthouse report or the full config in the CLI? If in the report, which section?

🤔 This is a weird question, Lighthouse.

How much support is needed from the Lighthouse team?

A bushelful.

Any other links or documentation that we should check out?

Nah just https://www.webbloatscore.com/

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:5
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
patrickhulcecommented, May 18, 2020

Aren’t Lighthouse’s testing resolutions (mobile/desktop) set in stone to ensure consistency?

I wasn’t trying to say that the web bloat score will suffer from variability due to changing screen sizes in Lighthouse. I was using that as another prong in the argument that web bloat score is not a real performance metric, it’s a neat heuristic that summarizes people’s impressions about “waste” on the web in an easy to consume number.

Lighthouse has spent a very long time advocating and refining around metrics that actually measure user perceived performance, and I question the value of this as a performance metric. As a best practices “respect users’ data plan” metric, sounds great! As a perf diagnostic about “using bytes efficiently”, let’s do it! But a performance metric it is not, IMO.

Maybe there should be a set of standardized desktop resolutions?

There is an established desktop viewport when you select “desktop” in most environments, so I don’t think this is as big of a concern. You can disable the emulation completely which I believe was the situation @connorjclark was referring to, but it’s not as common and requires specific CLI flags.

https://github.com/GoogleChrome/lighthouse/blob/22e9783642822395884fb3ba5d5ba57f8901ce63/lighthouse-core/lib/emulation.js#L36-L39

2reactions
patrickhulcecommented, Oct 13, 2018

Awesome! I have a few thoughts here 😃

  • ❤️ the idea of hammering home the need to drive bytes down
  • ❤️ some sort of visual information to downloaded size ratio
  • ❤️ all these answers to the audit checklist 😄

Now not to 🌧on the web bloat score parade buuuuuttt…

  • I’m not sure I 100% agree with presenting it as a performance metric. If including additional bytes does not show up in our metrics in any way, I’m fairly confident saying it’s not really an issue with the site’s performance. It’s more of a user-hostile issue for consuming the user’s bandwidth unnecessarily. My test for this is that with all the other metrics (with some exceptions to TTI I’ve already lost 😅 ), improvement there directly and obviously improves the user’s perception of the site’s performance. If after TTI I just download a bunch of useless stuff to inflate the bytes, my perception of the site’s performance doesn’t really change (unless it starts downloading a lot more later causing contention, but we ignore what the page might do later throughout LH). The pain is really the cost to my data plan. Would folks be willing to consider this as a diagnostic audit to replace/supplement total-byte-weight or a numeric best practices audit or some new-fangled category? I recognize it’ll be given less consideration if it’s not scored so I’m trying to find a way to make it work promise 😄
  • I don’t think we should implement it as directly stated on webbloatscore. Specifically, PNG 😃 From their docs…

It was our arbitrary decision to use PNG, as they are lossless compression. Maybe JPEGs would be better, most web pages have lossy JPEGs on them anyway.

  • I do argue that JPEGs would be better and we already have the JPEG size from the trace so it’d be free. If we really want to follow in the spirit of PNG, we could re-use the histogram color counts from speedIndex instead which is very roughly how PNG compression works. I’m not convinced it’d be critical enough to grab full size PNG screenshots separately for this.
  • I have some issues with web bloat score totally ignoring interactivity/animation/etc as a priority of the modern web, but the bloat is so bad today I don’t think many good actors are going to get unfairly punished, so I’ll stop here 😃
Read more comments on GitHub >

github_iconTop Results From Across the Web

The average web page is 3MB. How much should we care?
And if we don't consider page size a meaningful metric, then what should we care about? Web performance: page bloat. Before we wade...
Read more >
Web Bloat Score Calculator
Use WebBloatScore.com to calculate the Bloat Score of any website by comparing page size with optimized page screenshot size.
Read more >
How do modern frameworks perform on the new INP metric
We expect the INP score to provide a better compass for websites to improve responsiveness and performance in the future. We will take...
Read more >
Use tools to measure performance - web.dev
Check file sizes to find bloated images, media, HTML, CSS and JavaScript. ... Online test applications; Emulation tools; Analytics; Metrics ...
Read more >
Speed Index - Another Way to Measure Web Performance
The speed index metric was created and added to WebPageTest back in 2012. It is expressed as a numeric score with a lower...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found