Merge pull request #1961 from brendandahl/font-load-delay3
Use timeout for font ready callback to avoid intermittent chrome failure
This commit is contained in:
commit
20bead2c47
@ -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