tsayen / dom-to-image

Generates an image from a DOM node using HTML5 canvas
Other
10.21k stars 1.68k forks source link

toPng significantly longer on hosted app vs local #418

Open sabetAI opened 2 years ago

sabetAI commented 2 years ago

Use case: description, code

I'm trying to identify why calling toPng in deployed app is taking significantly longer than local. Both apps are still rendering client-side, was wondering if others could provide some insight.

  1. Go to https://www.urzas.ai/, click on card and open console.

Expected behavior

  1. takes ~2s locally.

Actual behavior (stack traces, console logs etc)

  1. console.time gives 8-10s for saveImage to complete, which consists of three calls of toPng (due to ios fix)

    Library version

    2.6.0

Browsers