Skip to content

Commit 62a9baf

Browse files
Update explainer.md
1 parent 877c1b8 commit 62a9baf

File tree

1 file changed

+32
-26
lines changed

1 file changed

+32
-26
lines changed

explainers/Sustainability/explainer.md

Lines changed: 32 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,56 @@
1-
# DevTools: Feature for Sustainable Web Development
1+
# DevTools: Sustainable Web Development Feature
22
Author:
33
- [Taylore Givens](https://github.com/tayloregivens), Program Manager
44
## Status of this feature
5-
This is a proposal for a new feature not yet in development. Please share your feedback [here](https://github.com/MicrosoftEdge/DevTools/issues/26).
5+
Proposal for a feature not yet in development. Please share your feedback [here](https://github.com/MicrosoftEdge/DevTools/issues/92).
66
## Definition
7-
sustainability of a web app – energy consumption of a web app
7+
web app sustainability – energy consumption and type of energy (i.e. fossil fuels/renewable) used for a web app
8+
89
## Introduction
9-
The carbon impact of the internet, including the hardware, software, and systems that go into creating it, produces about [3.7%]( https://www.bbc.com/future/article/20200305-why-your-internet-habits-are-not-as-clean-as-you-think) of global carbon emissions. This is similar to the percentage of global emissions from the [airline industry](https://www.bbc.com/future/article/20200305-why-your-internet-habits-are-not-as-clean-as-you-think). Developers and the public are becoming increasingly more aware and concerned about this issue. A growing number of *developers are interested in understanding what factors impact a web app's sustainability or energy consumption* and how to reduce the energy consumption. Consequently, tools such as [Website Carbon](https://www.websitecarbon.com/), [Ecograder](https://ecograder.com/), [EcoPing](https://ecoping.earth/blog/core-web-vitals-and-sustainability), and [Beacon](https://digitalbeacon.co/) have been created to calculate the amount of CO2 a web app emits and provide recommendations to improve the sustainability of a web app.
10+
The carbon impact of the internet, including the hardware, software, and systems that go into creating it, produces about [3.7%]( https://www.bbc.com/future/article/20200305-why-your-internet-habits-are-not-as-clean-as-you-think) of global carbon emissions. This is similar to the percentage of global emissions from the [airline industry](https://www.bbc.com/future/article/20200305-why-your-internet-habits-are-not-as-clean-as-you-think). Developers and the public are becoming increasingly more aware and concerned about this issue. Developers are increasingly interested in understanding **what factors impact a web app's sustainability and how to improve it's sustainability.** Consequently, tools such as [Website Carbon](https://www.websitecarbon.com/), [Ecograder](https://ecograder.com/), [EcoPing](https://ecoping.earth/blog/core-web-vitals-and-sustainability), and [Beacon](https://digitalbeacon.co/) have been created to calculate the amount of CO2 a web app emits and provide recommendations to improve the sustainability of a web app.
1011
## Goals
11-
Adding sustainability features to Edge DevTools will raise awareness about the alarming carbon impact of web apps and the internet and help developers measure and improve the sustainability of their web apps by
12+
Adding sustainability features to DevTools will raise awareness about the alarming carbon impact of web apps and the internet and help developers measure and improve the sustainability of their web apps by
1213
- Providing proxy web app sustainability measurements
1314
- Highlighting common factors that reduce the sustainability of web apps by showing or explaining how these factors decrease performance and increase energy consumption
1415
- Indicating to developers what actions they’re currently taking, such as performance improvements, that also improve web app sustainability
1516
- Educating developers on new actions they can take that are purely beneficial for sustainability.
1617
## Solution
17-
Summary of features we’re investigating adding to DevTools:
18+
### Summary
1819
- Label existing issues in the Issues panel that are beneficial to sustainability and energy efficiency
19-
- Create a “Sustainability” tab that provides metrics on the overall energy consumption of the web app, the impact third parties have on energy and performance, and a list of best practices to improve sustainability
20+
- Create a “Sustainability” tab that is a hub for sustainability-related metrics and provides insights about web app energy consumption, the type of energy used to power a web app, third parties' impact on performance and energy, and best practices to improve sustainability.
2021

2122
### Sustainability Content Labeling in Issues Tab
2223
![Issues Tab UI](explainer_Issues.jpg)
2324
Mockup is conceptual, not the final design
2425
#### Usage
25-
Once the user navigates to the Issues panel, any issue or category relevant to improving sustainability will have a sustainability label. Clicking this label will expand the category or issue dropdown window. The dropdown window will include a green banner describing how the category or issue is related to sustainability. The banner will also include a link to external documentation to learn more about why the category or issue is sustainability related. The banner will potentially also include a link to the DevTools Sustainability Tab (see next section) which has a dashboard of sustainability-related metrics and insights.
26-
Sustainability labeling will be enabled by default but can be disabled to reduce noisiness. Categories or issues labeled as sustainable would be prioritized in the ordering of categories and issues.
26+
Once the user navigates to the Issues panel, any issue or category relevant to improving sustainability will have a sustainability label. Clicking this label will expand the category or issue dropdown window. The dropdown window will include a green banner describing how the category or issue is related to sustainability. The banner will also include a link to external documentation to learn more about why the category or issue is sustainability related. The banner will potentially also include a link to the DevTools Sustainability Tab (see next section).
27+
28+
Sustainability labeling will be enabled by default but can be disabled with the checkbox to reduce noisiness. Categories or issues labeled as sustainable would be prioritized in the ordering of categories and issues.
2729

2830
### Sustainability Tab
29-
This tab will be a hub for sustainability-related metrics and provide insights about web app energy consumption, third parties' impact on performance, and best practices to improve sustainability.
31+
This tab will be a hub for sustainability-related metrics and provide insights about web app energy consumption, the type of energy used to power a web app, third parties' impact on performance and energy, and best practices to improve sustainability.
3032

31-
Although developers requested a web app carbon calculator feature in DevTools, like [Website Carbon](https://www.websitecarbon.com/), these types of algorithms are underdeveloped and inaccurate because they often rely on inputting the byte size of a website and applying average ratios (i.e. kWh/byte and CO2 g/kWh) to get a carbon estimate. This type of algorithm is better suited to estimate the carbon emitted from the network transfer energy used to render a web app rather than estimate the total carbon emissions associated with a web app.
33+
Although developers requested a web app carbon calculator feature in DevTools, like [Website Carbon](https://www.websitecarbon.com/), these types of algorithms are underdeveloped and inaccurate because they often rely on inputting the byte size of a website and applying average ratios (i.e. kWh/byte and CO2 g/kWh) to get a carbon estimate. This type of algorithm is **better suited to estimate the carbon emitted from the energy used to transfer a web app over the network** rather than estimate the total carbon emissions associated with a web app.
3234

3335
#### Content and Usage
34-
The Sustainability tab will have three sections: Energy Consumption, Third Party Impact, and Best Practices.
35-
36-
Energy Consumption
37-
38-
> The Client-Device Energy and Network Transfer Energy sub-sections display metrics relevant to how much energy is used to render the web app on the client device and transfer it over the network to give the developer a sense of the energy consumed by the web app.
39-
>
40-
> Client-Device Energy
41-
> - “Client-Device Energy Score“ is out of 100 and is based on the CPU utilization and GPU utilization of the web app's initialization compared to the average web app. The score will vary slightly depending on the client's device due to different hardware. The score should be used as a guideline metric to assess how incremental code changes affect the client device energy.
42-
> - CPU metrics such as the average CPU utilization and the live CPU utilization
43-
> - Link to Performance tab to further investigate CPU utilization
44-
>
45-
> Network Transfer Energy
46-
> - Bytes transferred and number of network requests to give context to the amount of network activity the web app is generating
47-
> - Use an open-source API, such as the [Green Web Foundation API] (https://www.thegreenwebfoundation.org/green-web-feed/), to estimate carbon emissions due to the energy required to transfer bytes over the network
36+
The Sustainability tab has three sections: Sustainability Analysis, Third Party Impact, and Best Practices.
4837

38+
Sustainability Analysis
39+
> Energy Consumption
40+
> > The Client-Device Energy and Network Transfer Energy sub-sections display proxy metrics relevant to how much energy is used to render the web app on the client device and transfer it over the network to give the developer a sense of the energy consumed by the web app.
41+
> >
42+
> >Client-Device Energy
43+
> >- “Client-Device Energy Score“ is out of 100 and is based on the CPU utilization and GPU utilization of the web app's initialization compared to the average web app. The score will vary slightly depending on the client's device due to different hardware. The score should be used as a guideline metric to assess how incremental code changes affect the client device energy.
44+
> >- CPU metrics such as the average CPU utilization and the live CPU utilization
45+
> >- Link to Performance tab to further investigate CPU utilization
46+
> >
47+
> >Network Transfer Energy
48+
> >- Bytes transferred and number of network requests to give context to the amount of network activity the web app is generating
49+
> >- Use an open-source API, such as the [Green Web Foundation API](https://github.com/thegreenwebfoundation/co2.js), to get a carbon estimate and display this value as the emissions from the energy required to transfer the web app bytes over the network.
50+
> >
51+
> Energy Type
52+
> > Display whether the web app runs on a green hosting service (i.e. service that runs on renewable energy) based on the Green Web Foundation's open source [dataset](https://www.thegreenwebfoundation.org/green-web-datasets/).
53+
> >
4954
Third-Party Impact
5055
> Third parties are often incorporated or added on top of web apps without much thought as to how they affect the weight and performance of the app. We will display the following data to help developers identify the potential negative impact third parties are having on their web app.
5156
> - number of requests made to third parties
@@ -54,7 +59,8 @@ Third-Party Impact
5459
5560
Best Practices
5661
> Sustainable web app design recommendations focus on making the web app as light and high-performant as possible by limiting unnecessary web app components.
57-
> There are certain properties we recommend eliminating or adding to a web app to improve its sustainability, such as eliminating [inline CSS Styles](https://webhint.io/docs/user-guide/hints/hint-no-inline-styles/) because inline CSS can’t be cached or switching your hosting to a [hosting service that runs on renewable energy](https://www.thegreenwebfoundation.org/).
62+
>
63+
> There are certain properties we recommend eliminating or adding to a web app to improve its sustainability, such as eliminating [inline CSS Styles](https://webhint.io/docs/user-guide/hints/hint-no-inline-styles/) because inline CSS can’t be cached or [minifying all your CSS and Javascript](https://webhint.io/docs/user-guide/hints/hint-minified-js/).
5864
>
5965
> However, for other properties that negatively impact sustainability, it's unreasonable to recommend that all web apps eliminate these properties such as [custom fonts or large photos](https://www.fastcompany.com/90605005/these-are-the-worlds-most-sustainable-fonts#:~:text=Arial%20and%20Times%20New%20Roman%20aren%E2%80%99t%20the%20only,custom-designed%20typefaces%2C%20this%20is%20slim%20pickings.%20%5BScreenshot%3A%20FormaFantasma%5D). Therefore, we will provide a table that shows the number of custom fonts, large photos, and other properties in a color-coded manner to indicate which counts are above or below average to give developers a sense of how sustainable their website is compared to other sites.
6066

0 commit comments

Comments
 (0)