Viewer.js memory leak
- Dominant language
- JavaScript
- Stars
- 333
- Forks
- 98
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
(I use Silex framework with twig html)
When loading large documents (400+ pages, 30MB), the loading process is very slow and memory leak occurs on the client side. The browser memory usage grows to +1000 MB after opening and then freezes. Viewer.js opens in RAW HTML version of the document from our server. Memory leaks can also occur if the minimal code I use to render the document (At first I thought that this is caused by a memory leak, therefore I put everything else comments, but the memory leak remained):
var url = $('#viewerContainer').data('assets-url');
docViewer = Crocodoc.createViewer('.viewer', {
url: url,
});
docViewer.load();
The question is, whether there is a setting for viewer.js or box view api (using to convert to pdf raw html) what could solve the problem? Possibly some other advice?
Thank you for help.

Raw html document:
https://drive.google.com/file/d/0ByDvWaiboN9DYkJ4UFF0NmtqVWM/view?usp=drive_web
Contributor guide
Assessment
This issue has not been assessed yet.