Stuck at "0ms Starting document clone" on IOS (Safari and Chrome)

Author: sharmavj89Created Apr 19, 2023Updated Apr 7, 2026

I can reproduce the issue on multiple ios devices. Works like a charm on all other OS (including Android, Windows and MacOS) though. I have tried Safari and chrome and the issue showed up on both browsers. I've tried using all JS versions (non-minified) from 1.4.1 down to 1.2.0. Can't see any errors in the console either except it being stuck at "Starting document clone" at 0ms. I'm trying to screenshot a html div element that contains multiple divs (mix of imgs and text). The size of png generated on other devices is not more than 100kb though so I doubt it's got something to do with render issue due to large size as mentioned in another issue here.

This is what I'm getting in chrome console DEBUG #1 0ms Starting document clone with size 428x859 scrolled to 0,-526 And nothing happens after that.

Here's my script

Version html2canvas : 1.4.1 IOS : 16.4.1