built-in fonts are not cached
This commit is contained in:
parent
122d168b51
commit
2dc1ff98ac
2 changed files with 12 additions and 7 deletions
|
@ -91,7 +91,9 @@ function displayPage(num) {
|
|||
infoDisplay.innerHTML = "Time to load/compile/fonts/render: "+ (t1 - t0) + "/" + (t2 - t1) + "/" + (t3 - t2) + "/" + (t4 - t3) + " ms";
|
||||
}
|
||||
|
||||
FontLoader.bind(fonts, displayPage);
|
||||
// Always defer call to displayPage() to work around bug in
|
||||
// Firefox error reporting from XHR callbacks.
|
||||
FontLoader.bind(fonts, function () { setTimeout(displayPage, 0); });
|
||||
}
|
||||
|
||||
function nextPage() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue