Hi Thorsten,
Thanks for sending us the video.
Before we start downloading the document, we wait for all the annotations being loaded so that they won't get lost in the downloaded document.
From the video we can see that although the second document is smaller, it has more pages. And we guess that the second document may contain links or other annotations which will slow down the downloading process.
If you don't care about annotations in the downloaded document, you can modify the downloadDocument function in MenuOverlay.js, here is what you can change:
From:
downloadPdf(dispatch, {
documentPath,
filename: documentFilename
});
To:
downloadPdf(dispatch, {
documentPath,
filename: documentFilename,
includeAnnotations: false
});
We also see that the click event for the download button can be queued up which results in downloading multiple same documents. This is a bug and we will make a fix for it.