Use timeout for font ready callback to avoid intermittent chrome failures.
This commit is contained in:
parent
485f8ebe27
commit
69eca3c50f
@ -418,7 +418,8 @@ var FontLoader = {
|
||||
document.documentElement.removeEventListener(
|
||||
'pdfjsFontLoad', checkFontsLoaded, false);
|
||||
|
||||
callback();
|
||||
// Use timeout to fix chrome intermittent failures on font loading.
|
||||
setTimeout(callback, 0);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user