Skip to content

Commit 560bb89

Browse files
committed
Editorial: add an id="" to the download total bytes note
1 parent 362dfd1 commit 560bb89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.bs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1862,7 +1862,7 @@ Every [=interface=] [=interface/including=] the {{DestroyableModel}} interface m
18621862

18631863
This number must be equal to the number of bytes that the user agent needs to download at the present time, not including any that have already been downloaded.
18641864

1865-
<div class="note">
1865+
<div class="note" id="note-progress-total-bytes">
18661866
<p>For example, if another tab has started the download and it is 90% finished, and the user agent is planning to share the model across all tabs, then |totalBytes| will be 10% of the size of the model, not 100% of the size of the model.
18671867

18681868
<p>This prevents the web developer-perceived progress from suddenly jumping from 0% to 90%, and then taking a long time to go from 90% to 100%. It also provides some protection against the (admittedly not very powerful) fingerprinting vector of measuring the current download progress across multiple sites.

0 commit comments

Comments
 (0)