-
Notifications
You must be signed in to change notification settings - Fork 216
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Large files once again taking long time to load #1468
Comments
@phuocng I sent you an email with a bit more info on this one. |
Hi @phuocng I know you have a lot you're on top of with this library, but would love to know if you've had a chance to look at the long load time issue? I'm wondering if this issue is related? Thanks. I really do appreciate your work on this! |
Same Issue. Is it able to get less page for first render // render less page initial
const queryPageSizes = Array(doc.numPages)
.fill(0)
.map(
(_, i) =>
new Promise<PageSize>((resolve, _) => {
getPage(doc, i).then((pdfPage) => {
const viewport = pdfPage.getViewport({ scale: 1 });
resolve({
pageHeight: viewport.height,
pageWidth: viewport.width,
rotation: viewport.rotation,
});
});
})
); |
I've been looking at this issue as well (I work with Kelly). Here is what I've observed: Using React PDF Viewer
Using React PDF Viewer
Using pdf.js directly
I've looked a little into the React PDF Viewer code, but don't understand it well enough to identify what's different with how it renders PDFs vs. the pdf.js example linked to above. I'm hoping you'll be better able to answer that mystery. Thanks for your help in advance, and please reach out if having access to the example page URLs or our test code would help with your debugging. |
Thanks for adding that Greg! @phuocng has been amazing about continuing to update and improve the react-pdf-viewer and being responsive. |
Hello! Just for the sake of emphasizing this issue. We have an application that uses React-Pdf-Viewer and we are having long PDF load times due to this issue. By the way, thanks for this amazing library. Hope I could help you further with this but unfortunately I lack the knowledge and skills. |
Same here... |
@phuocng do you have a sense of when milestone 4.0.0 is likely to be released? |
Hi @phuocng 👋 |
@kdv24 The issue is fixed in the latest code, and it will be included in v4.0. I can't say exactly when v4.0 comes, but I have been working hard on it. It will be a big release with many improvements and refactors. |
Just commenting if someone facing this slow loading or unresponsive issue with ""Aww, Snap..." error. See this issue #1717 |
Hello @phuocng , I am looking forward to buy your product, its amazing, all of my feature are customised. but one feature that is mandatory for my application is partial loading or I can say lazy loading, If you assured me with the release date of your new version with this feature, I am super interested to buy your product. Also please let me know new version will support which version of react so that I must be updated with my application. |
Waiting for this release and waiting for version 4 :) |
Also eager to help test the new 4.0. Have some highlighting updates in my fork and would love to see how it integrates |
@phuocng I wonder if one of the updates has interfered with the web optimization you addressed here. Our pdfs are not being displayed until the entire 2000 plus page pdf has loaded. This is resulting in very long load times. Would you mind testing with your dummy 5000 page pdf and seeing it you have the same result now? Thank you very much.
The text was updated successfully, but these errors were encountered: