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:
parent
0c08b40043
commit
b927eecf88
@ -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);
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user