Dispatch synthetic SVGLoad event in soft load when needed.

This commit is contained in:
hackademix 2020-09-14 22:34:27 +02:00
parent f9e4fd1fc1
commit ab3f202c30
1 changed files with 3 additions and 0 deletions

View File

@ -102,6 +102,9 @@
}));
if (document.readyState === "complete") {
window.dispatchEvent(new Event("load"));
if (document.documentElement instanceof SVGElement) {
document.documentElement.dispatchEvent(new Event("SVGLoad"));
}
}
})();
} catch (e) {