PDF.js Express Version
UI Version = 8.7.0
Core version = 8.7.5
Detailed description of issue
Some users are experiencing the viewer taking a longer than expected period of time to open PDFs. It appears to happen to users with slow connections. The assets appear to have been cached on their browser. The PDF being opened is in memory on their machine. Could the licence check be an issue with the viewer taking longer to open than expected?
Is it possible to pre-empt the licence key check to verify the licence and use a session token to prevent this delay?
Expected behaviour
{Provide a screenshot or description of the expected behaviour}
Does your issue happen with every document, or just one?
Issue happens intermittently on slow internet connections.
The license should not be a reason why PDFs take longer to load.
Could you please clarify how they are loading the document from memory? You can check the network panel to see if there are any pending requests during the document load to see if it is a network specific issue.
We are generating a PDF as a base64 string on the client. The issue seems to happen even when the PDF has been cached locally. I’ll see if I can find the issue using the Network tab.
I spoke with the user who was having the issue and I noticed a difference in the time it took for the https://auth.pdfjs.express/?key= response to return. I received a response in 178ms whereas their response took 1.37 seconds.