html2canvas icon indicating copy to clipboard operation
html2canvas copied to clipboard

major performance degrade with Chrome 100.0.4896.75 compared to 99.0.4844.84

Open RomanLut opened this issue 3 years ago • 3 comments

Bug reports:

After upgrading Chrome to v.100.0.4896.75, performance dropped conciderably. Numbers are, generating 1 image from HTML page: Chrome 99.0.4844.84 - 5 seconds Chrome 100.0.4896.75 - 30 seconds Downgrade is >6x times

Does anyone experience the same problem? Does anyone find fix or workaround?

Specifications:

  • html2canvas version tested with: 1.41
  • Browser & version: Chrome 100.0.4896.75 and 99.0.4844.84
  • Operating system: Windows 10

RomanLut avatar Apr 07 '22 00:04 RomanLut

yeah its happening, its impossible to use at this moment

zuryLanderos avatar Apr 11 '22 21:04 zuryLanderos

I'm new to html2canvas, since a week or two weeks ago. I use html2canvas in nodejs on Chrome v100.0.4896.127 and firefox to take snapshot of youtube video tags, but in the both environments it takes like 5 to more than 10 seconds. So this result is related to this issue? I mean I don't know how much it normally should take.

yuis-ice avatar Apr 22 '22 07:04 yuis-ice

Just wanted to add that we're running into this issue also. It's a crucial sublibrary in a library we're using to export PDFs: html2pdf.js This bug seems to have significantly slowed down html2pdf.js also. Our workaround was to add an override for html2canvas to downgrade to 1.1.4 within html2pdf.js in package.json

  "overrides": {
    "html2pdf.js": {
      "html2canvas": "1.1.4"
    }
  }

zorent-zebra avatar May 23 '22 15:05 zorent-zebra