Skip to content

Commit 01da8b2

Browse files
committed
[css-font-loading] Add a clarifying note to the 'UAs can load a FontFace whenever they feel like' paragraph.
1 parent 1882fe2 commit 01da8b2

File tree

2 files changed

+43
-26
lines changed

2 files changed

+43
-26
lines changed

css-font-loading/Overview.bs

+10
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,16 @@ The <code>load()</code> method</h3>
336336
When this happens,
337337
they must act as if they had called the corresponding {{FontFace}}’s {{FontFace/load()}} method described here.
338338

339+
Note: Some UAs utilize a "font cache"
340+
which avoids having to download the same font multiple times
341+
on a page or on multiple pages within the same origin.
342+
Multiple {{FontFace}} objects can be mapped to the same entry in the font cache,
343+
which means that a {{FontFace}} object might start loading unexpectedly,
344+
even if it's not in a {{FontFaceSet}},
345+
because some other {{FontFace}} object pointing to the same font data
346+
(perhaps on a different page entirely!)
347+
has been loaded.
348+
339349
<h3 id='font-face-css-connection'>
340350
Interaction with CSS’s ''@font-face'' Rule</h3>
341351

0 commit comments

Comments
 (0)