diff --git a/resemble.js b/resemble.js index 299c821..3be9b7e 100644 --- a/resemble.js +++ b/resemble.js @@ -289,7 +289,11 @@ URL: https://github.com/Huddle/Resemble.js if (typeof fileDataForImage === "string") { hiddenImage.src = fileDataForImage; - if (hiddenImage.complete && hiddenImage.naturalWidth > 0) { + if ( + hiddenImage.complete && + hiddenImage.naturalWidth > 0 && + hiddenImage.onload + ) { hiddenImage.onload(); } } else if (