Giter VIP home page Giter VIP logo

Comments (5)

paulcalvano avatar paulcalvano commented on August 12, 2024 2

Actually it looks like just the css coverage details are in the lighthouse reports.

   "unused-css-rules": {
      "score": 0,
      "displayValue": "Potential savings of 178 KB (~1,070 ms)",
      "rawValue": 1070,
      "extendedInfo": {
        "value": {
          "wastedMs": 1070,
          "wastedKb": 178,
          "results": [

For example, you can extract the wastedKb with
JSON_EXTRACT_SCALAR(report, "$.audits.unused-css-rules.extendedInfo.value.wastedKb")

from httparchive.org.

rviscomi avatar rviscomi commented on August 12, 2024

@pmeenan is there a way to get code coverage info in the HAR data?

from httparchive.org.

pmeenan avatar pmeenan commented on August 12, 2024

Yep, I've been peeking at the profiler code and should be able to get rough coverage data (function/block level accuracy). Any more granular than that turns off the v8 code optimizations and kills perf. I can probably get it added before the next crawl.

Not sure we can caveat the data but analysis will have to be with a grain of salt. The coverage would just cover the code (and css) that was used to load the page. If the code is needed to handle interactions, scrolling, etc it is still important to load but would be considered part of the dead code.

from httparchive.org.

paulcalvano avatar paulcalvano commented on August 12, 2024

I believe the code coverage details are in the lighthouse test results already.

from httparchive.org.

tunetheweb avatar tunetheweb commented on August 12, 2024

Closing as both available in Lighthouse now

from httparchive.org.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.