mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-17 08:51:06 +00:00
try disabling pdfjs font face usage for performance
each new font face rule causes a full screen repaint
This commit is contained in:
parent
a4ddfd5725
commit
05af3573b6
1 changed files with 1 additions and 0 deletions
|
@ -10,6 +10,7 @@ define [
|
|||
|
||||
constructor: (@url, @options) ->
|
||||
PDFJS.disableAutoFetch = true
|
||||
PDFJS.disableFontFace = true
|
||||
@scale = @options.scale || 1
|
||||
@document = $q.when(PDFJS.getDocument @url)
|
||||
@navigateFn = @options.navigateFn
|
||||
|
|
Loading…
Reference in a new issue