Upload and use font asset will cause report generate slow

89 views
Skip to first unread message

章恩齊

unread,
Mar 14, 2017, 3:16:46 AM3/14/17
to jsreport
After upload and use custom font will make report generate slow. 
Before use custom font nearly 2 seconds, after use custom font spend nearly 20 seconds.

Jan Blaha

unread,
Mar 14, 2017, 3:43:06 AM3/14/17
to jsreport
1. You can speed it up by allowing phantomjs to cache the font. 

2. Using link to embed font will speed it up even more because it avoids base64 encoding

3. Your font is huge ~10MB, normal fonts are usually ~100KB. This is the main problem. Maybe you find alternative smaller download.
Reply all
Reply to author
Forward
0 new messages