mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-25 08:01:20 -08:00
refactor(core): [CORE-22] validate compatible core and defer initial layout
This commit is contained in:
1 parent
5efc7f7699
commit
adec20213f
24 files changed
+77377
-50
No files matched your search
@@ -21,6 +21,8 @@ export function observeControlLayout(art: ControlHost): void {
|
||||
scope.add(() => {
|
||||
observer.disconnect()
|
||||
})
|
||||
// Its initial delivery measures after the remaining constructor DOM writes.
|
||||
return
|
||||
}
|
||||
else if (typeof MutationObserver !== 'undefined') {
|
||||
const observer = new MutationObserver(update)
|
||||
|
||||
Reference in new issue
Block a user