built-in fonts are not cached

This commit is contained in:
Chris Jones 2011-07-05 00:02:09 -04:00
parent 122d168b51
commit 2dc1ff98ac
2 changed files with 12 additions and 7 deletions

View file

@ -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() {