WebViewer Version:
Do you have an issue with a specific file(s)? webviewer-core.min.js, webviewer-ui.min.js
Can you reproduce using one of our samples or online demos? No
Are you using the WebViewer server? No
Does the issue only happen on certain browsers? No
Is your issue related to a front-end framework? Yes
Is your issue related to annotations? No
Please give a brief summary of your issue: Some webviewer files are loading slowly (sometimes)
Please describe your issue and provide steps to reproduce it:
On load, webviewer-core.min.js, webviewer-ui.min.js are always slowly than they should be to load (473ms for a 941kb file, for instance), and sometimes are EXTREMELY slow to load, taking upwards of 30 seconds!
There is nothing special I am doing to make this happen. Sometimes it happens, sometimes it does not. I would say it happens about 5% of the time that it takes 30 seconds to load, but the slightly too slow loading is 100% of the time (almost 500ms to load a 900kb file is much too slow).
I’m not sure what is happening in the file (is it doing an api call to check the license or something?) but it is taking too long. I have already run through as many optimizations as I can to speed things up, but am at a loss. I can not “preload” the files as the very first page of our site uses the webviewer, so we need it to work right away.
This issue happens with random pdfs, for random users, at random times. I have to believe it has something to do with an api call to the pdftron servers to check licenses or what not, which is almost certainly a blocking call.
Please help!
Thanks,
Jeff