You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/docs/co2js/methods.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -134,7 +134,7 @@ The `perVisitTrace()` function accepts the following parameters:
134
134
135
135
The `options` parameter can contain any of the following keys. These can be used to adjust the values used by the Sustainable Web Design Model's calculation.
136
136
137
-
-`dataReloadRatio` <spanclass="badge align-middle badge-success my-0">Optional</span> – a `number` between 0 and 1 representing the percentage of data that is downloaded by return visitors.
137
+
-`dataReloadRatio` <spanclass="badge align-middle badge-success my-0">Optional</span> – a `number` between 0 and 1 representing the percentage of data that is downloaded by return visitors. This is the complement of the data cache ratio from the Sustainable Web Design model, i.e. dataReloadRatio = 1 - dataCacheRatio.
138
138
-`firstVisitPercentage` <spanclass="badge align-middle badge-success my-0">Optional</span> – a `number` between 0 and 1 representing the percentage of new visitors.
139
139
-`returnVisitPercentage` <spanclass="badge align-middle badge-success my-0">Optional</span> – a `number` between 0 and 1 representing the percentage of returning visitors.
140
140
-`greenHostingFactor` <divclass="badge badge-warning gap-2 align-middle">Sustainable Web Design Model v4 only</div> - The portion of hosting services powered by renewable or zero-carbon energy, between 0 and 1. If the `green hosting` boolean above is set to `true` then the `greenHostingFactor` will always be `1`.
@@ -173,6 +173,6 @@ The `perVisitTrace()` function returns an object with the following keys:
173
173
-`dataCenter` – A `number` representing the carbon intensity for this segment (in grams per kilowatt-hour) used in the calculation.
174
174
-`networks` – A `number` representing the carbon intensity for this segment (in grams per kilowatt-hour) used in the calculation.
175
175
-`production` - A `number` representing the carbon intensity for this segment (in grams per kilowatt-hour) used in the calculation.
176
-
-`dataReloadRatio` – a `number` between 0 and 1 representing the percentage of data that is downloaded by return visitors.
176
+
-`dataReloadRatio` – a `number` between 0 and 1 representing the percentage of data that is downloaded by return visitors. This is the complement of the data cache ratio from the Sustainable Web Design model, i.e. dataReloadRatio = 1 - dataCacheRatio.
177
177
-`firstVisitPercentage` – a `number` between 0 and 1 representing the percentage of new visitors.
178
178
-`returnVisitPercentage` – a `number` between 0 and 1 representing the percentage of returning visitors.
0 commit comments