Skip to content

Commit 15c0ec0

Browse files
committed
fonts.ready is a property not a function
1 parent 3b782ba commit 15c0ec0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

css-font-loading/Overview.bs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1041,7 +1041,7 @@ API Examples</h2>
10411041
To show content only after all font loads complete:
10421042

10431043
<pre>
1044-
document.fonts.ready().then(function() {
1044+
document.fonts.ready.then(function() {
10451045
var content = document.getElementById("content");
10461046
content.style.visibility = "visible";
10471047
});
@@ -1081,7 +1081,7 @@ API Examples</h2>
10811081

10821082
function doEditing() {
10831083
// content/layout operations that may cause additional font loads
1084-
document.fonts.ready().then(measureTextElements);
1084+
document.fonts.ready.then(measureTextElements);
10851085
}
10861086
</pre>
10871087
</div>

0 commit comments

Comments
 (0)