Dispatch synthetic SVGLoad event in soft load when needed.
This commit is contained in:
parent
f9e4fd1fc1
commit
ab3f202c30
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue