2
0
mirror of https://github.com/iconify/iconify.git synced 2024-11-09 23:00:56 +00:00

Scan DOM on next tick in SVG framework instead of waiting for events

This commit is contained in:
Vjacheslav Trushkin 2020-07-23 19:19:37 +03:00
parent 0c08b40043
commit b927eecf88

View File

@ -360,9 +360,9 @@ if (typeof document !== 'undefined' && typeof window !== 'undefined') {
}
}
// Load observer
// Load observer and scan DOM on next tick
setTimeout(() => {
// Init on next tick when entire document has been parsed
scanDOM();
initObserver(scanDOM);
});
}