diff --git a/src/worker.js b/src/worker.js index ddaf76f7..e858ec1e 100644 --- a/src/worker.js +++ b/src/worker.js @@ -122,6 +122,9 @@ Worker.prototype.toContainer = function toContainer() { this.prop.container.appendChild(source); this.prop.overlay.appendChild(this.prop.container); document.body.appendChild(this.prop.overlay); + + // Delay to better ensure content is fully cloned and rendering before capturing. + return new Promise(resolve => setTimeout(resolve, 10)); }); };