niklasvh / html2canvas

Screenshots with JavaScript
https://html2canvas.hertzen.com/
MIT License
30.42k stars 4.79k forks source link

major performance degrade with Chrome 100.0.4896.75 compared to 99.0.4844.84 #2871

Open RomanLut opened 2 years ago

RomanLut commented 2 years ago

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:

zuryLanderos commented 2 years ago

yeah its happening, its impossible to use at this moment

yuis-ice commented 2 years ago

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.

zorent-zebra commented 2 years ago

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"
    }
  }