html2canvas seems to re-download all photos in page despite receiving an element with not photos #3007
Unanswered
gnesherAugury
asked this question in
Q&A
Replies: 1 comment 3 replies
-
Have you solved this problem? I have encountered the same problem |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
We are trying to take a screenshot of a graph and its surrounding elements (some text).
However, we can see in the network tab that when we execute the screenshot all images in the page are downloaded again even though they are not present in the screenshot.
What's more, when checking the request initiator (using Chrome) we can see that its html2canvas (and specifically:
documentClone.replaceChild(documentClone.adoptNode(this.documentElement), documentClone.documentElement);
)
A brief read through the code indicates that DocumentCloner intentionally clones the entire document, leading to this problem, but I'm not sure if this is intentional and if there's a way around it.
Our page has a number of large images and this slows the process of taking a screenshot
Beta Was this translation helpful? Give feedback.
All reactions