Skip to content

Commit

Permalink
Register built-in components when document interactive (#556)
Browse files Browse the repository at this point in the history
* fix: 修复核心全量后已知 bugs (#546)

* fix: mip 链接使用默认行为 (#548)

* fix: Register built-in components when document interactive (#555)
  • Loading branch information
PengXing authored Mar 22, 2019
1 parent 3169a34 commit 4ffae18
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/mip/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import 'deps/object-assign'

import {getRuntime} from './runtime'
import util from './util/index'
import {whenDocumentInteractive} from './util/dom/dom'
import {applyLayout} from './layout'
import viewer from './viewer'
import viewport from './viewport'
Expand Down Expand Up @@ -57,7 +58,7 @@ if (typeof window.MIP === 'undefined' || typeof window.MIP.version === 'undefine
hiddenElements.forEach(element => element.tagName.search(mipTagReg) > -1 && applyLayout(element))

// register buildin components
builtinComponents.register()
whenDocumentInteractive(document).then(builtinComponents.register)
Array.isArray(preregisteredExtensions) && preregisteredExtensions.forEach(window.MIP.push)

performance.start(window._mipStartTiming)
Expand Down

0 comments on commit 4ffae18

Please sign in to comment.