Skip to content

Commit

Permalink
Format contributing
Browse files Browse the repository at this point in the history
  • Loading branch information
saulshanabrook committed Jul 10, 2019
1 parent db23494 commit 4f92c3b
Showing 1 changed file with 69 additions and 56 deletions.
125 changes: 69 additions & 56 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -311,75 +311,88 @@ This gives us a report of the relative differences between the audits in the two
> `normal.json` -> `prod.json`
>
> **First Contentful Paint**
> * -13% Δ
> * 1.1 s -> 1.0 s
> * First Contentful Paint marks the time at which the first text or image is painted. [Learn more](https://developers.google.com/web/tools/lighthouse/audits/first-contentful-paint).
>
>
> - -13% Δ
> - 1.1 s -> 1.0 s
> - First Contentful Paint marks the time at which the first text or image is painted. [Learn more](https://developers.google.com/web/tools/lighthouse/audits/first-contentful-paint).
>
> **First Meaningful Paint**
> * -13% Δ
> * 1.1 s -> 1.0 s
> * First Meaningful Paint measures when the primary content of a page is visible. [Learn more](https://developers.google.com/web/tools/lighthouse/audits/first-meaningful-paint).
>
>
> - -13% Δ
> - 1.1 s -> 1.0 s
> - First Meaningful Paint measures when the primary content of a page is visible. [Learn more](https://developers.google.com/web/tools/lighthouse/audits/first-meaningful-paint).
>
> **Speed Index**
> * -12% Δ
> * 1.2 s -> 1.1 s
> * Speed Index shows how quickly the contents of a page are visibly populated. [Learn more](https://developers.google.com/web/tools/lighthouse/audits/speed-index).
>
>
> - -12% Δ
> - 1.2 s -> 1.1 s
> - Speed Index shows how quickly the contents of a page are visibly populated. [Learn more](https://developers.google.com/web/tools/lighthouse/audits/speed-index).
>
> **Estimated Input Latency**
> * 0% Δ
> * 20 ms -> 20 ms
> * The score above is an estimate of how long your app takes to respond to user input, in milliseconds, during the busiest 5s window of page load. If your latency is higher than 50 ms, users may perceive your app as laggy. [Learn more](https://developers.google.com/web/tools/lighthouse/audits/estimated-input-latency).
>
>
> - 0% Δ
> - 20 ms -> 20 ms
> - The score above is an estimate of how long your app takes to respond to user input, in milliseconds, during the busiest 5s window of page load. If your latency is higher than 50 ms, users may perceive your app as laggy. [Learn more](https://developers.google.com/web/tools/lighthouse/audits/estimated-input-latency).
>
> **First CPU Idle**
> * -13% Δ
> * 1.1 s -> 1.0 s
> * First CPU Idle marks the first time at which the page's main thread is quiet enough to handle input. [Learn more](https://developers.google.com/web/tools/lighthouse/audits/first-interactive).
>
>
> - -13% Δ
> - 1.1 s -> 1.0 s
> - First CPU Idle marks the first time at which the page's main thread is quiet enough to handle input. [Learn more](https://developers.google.com/web/tools/lighthouse/audits/first-interactive).
>
> **Time to Interactive**
> * -13% Δ
> * 1.1 s -> 1.0 s
> * Interactive marks the time at which the page is fully interactive. [Learn more](https://developers.google.com/web/tools/lighthouse/audits/consistently-interactive).
>
>
> - -13% Δ
> - 1.1 s -> 1.0 s
> - Interactive marks the time at which the page is fully interactive. [Learn more](https://developers.google.com/web/tools/lighthouse/audits/consistently-interactive).
>
> **Avoid multiple page redirects**
> * 0% Δ
> * Potential savings of 450 ms -> Potential savings of 450 ms
> * Redirects introduce additional delays before the page can be loaded. [Learn more](https://developers.google.com/web/tools/lighthouse/audits/redirects).
>
>
> - 0% Δ
> - Potential savings of 450 ms -> Potential savings of 450 ms
> - Redirects introduce additional delays before the page can be loaded. [Learn more](https://developers.google.com/web/tools/lighthouse/audits/redirects).
>
> **Minimizes main-thread work**
> * -40% Δ
> * 0.4 s -> 0.2 s
> * Consider reducing the time spent parsing, compiling and executing JS. You may find delivering smaller JS payloads helps with this.
>
>
> - -40% Δ
> - 0.4 s -> 0.2 s
> - Consider reducing the time spent parsing, compiling and executing JS. You may find delivering smaller JS payloads helps with this.
>
> **JavaScript execution time**
> * -100% Δ
> * 0.1 s ->
> * Consider reducing the time spent parsing, compiling, and executing JS. You may find delivering smaller JS payloads helps with this. [Learn more](https://developers.google.com/web/tools/lighthouse/audits/bootup).
>
>
> - -100% Δ
> - 0.1 s ->
> - Consider reducing the time spent parsing, compiling, and executing JS. You may find delivering smaller JS payloads helps with this. [Learn more](https://developers.google.com/web/tools/lighthouse/audits/bootup).
>
> **Avoids enormous network payloads**
> * 0% Δ
> * Total size was 531 KB -> Total size was 531 KB
> * Large network payloads cost users real money and are highly correlated with long load times. [Learn more](https://developers.google.com/web/tools/lighthouse/audits/network-payloads).
>
>
> - 0% Δ
> - Total size was 531 KB -> Total size was 531 KB
> - Large network payloads cost users real money and are highly correlated with long load times. [Learn more](https://developers.google.com/web/tools/lighthouse/audits/network-payloads).
>
> **Eliminate render-blocking resources**
> * 1% Δ
> * Potential savings of 1,340 ms -> Potential savings of 1,340 ms
> * Resources are blocking the first paint of your page. Consider delivering critical JS/CSS inline and deferring all non-critical JS/styles. [Learn more](https://developers.google.com/web/tools/lighthouse/audits/blocking-resources).
>
>
> - 1% Δ
> - Potential savings of 1,340 ms -> Potential savings of 1,340 ms
> - Resources are blocking the first paint of your page. Consider delivering critical JS/CSS inline and deferring all non-critical JS/styles. [Learn more](https://developers.google.com/web/tools/lighthouse/audits/blocking-resources).
>
> **Defer unused CSS**
> * 0% Δ
> * Potential savings of 288 KB -> Potential savings of 288 KB
> * Remove unused rules from stylesheets to reduce unnecessary bytes consumed by network activity. [Learn more](https://developers.google.com/web/tools/lighthouse/audits/unused-css).
>
>
> - 0% Δ
> - Potential savings of 288 KB -> Potential savings of 288 KB
> - Remove unused rules from stylesheets to reduce unnecessary bytes consumed by network activity. [Learn more](https://developers.google.com/web/tools/lighthouse/audits/unused-css).
>
> **Enable text compression**
> * 0% Δ
> * Potential savings of 399 KB -> Potential savings of 399 KB
> * Text-based resources should be served with compression (gzip, deflate or brotli) to minimize total network bytes. [Learn more](https://developers.google.com/web/tools/lighthouse/audits/text-compression).
>
>
> - 0% Δ
> - Potential savings of 399 KB -> Potential savings of 399 KB
> - Text-based resources should be served with compression (gzip, deflate or brotli) to minimize total network bytes. [Learn more](https://developers.google.com/web/tools/lighthouse/audits/text-compression).
>
> **Avoids an excessive DOM size**
> * 0% Δ
> * 73 nodes -> 73 nodes
> * Browser engineers recommend pages contain fewer than ~1,500 DOM nodes. The sweet spot is a tree depth < 32 elements and fewer than 60 children/parent element. A large DOM can increase memory usage, cause longer [style calculations](https://developers.google.com/web/fundamentals/performance/rendering/reduce-the-scope-and-complexity-of-style-calculations), and produce costly [layout reflows](https://developers.google.com/speed/articles/reflow). [Learn more](https://developers.google.com/web/tools/lighthouse/audits/dom-size).
>
> - 0% Δ
> - 73 nodes -> 73 nodes
> - Browser engineers recommend pages contain fewer than ~1,500 DOM nodes. The sweet spot is a tree depth < 32 elements and fewer than 60 children/parent element. A large DOM can increase memory usage, cause longer [style calculations](https://developers.google.com/web/fundamentals/performance/rendering/reduce-the-scope-and-complexity-of-style-calculations), and produce costly [layout reflows](https://developers.google.com/speed/articles/reflow). [Learn more](https://developers.google.com/web/tools/lighthouse/audits/dom-size).
### Build and run the stand-alone examples

Expand Down

0 comments on commit 4f92c3b

Please sign in to comment.