mirror of
https://gitee.com/docsifyjs/docsify.git
synced 2024-11-30 02:58:37 +08:00
ensure document ready before init Docsify (#233)
This commit is contained in:
parent
190710733e
commit
10045249d3
@ -30,6 +30,7 @@
|
||||
"pub": "sh build/release.sh"
|
||||
},
|
||||
"dependencies": {
|
||||
"document-ready": "^2.0.1",
|
||||
"marked": "^0.3.6",
|
||||
"prismjs": "^1.6.0",
|
||||
"tinydate": "^1.0.0",
|
||||
|
@ -1,3 +1,4 @@
|
||||
import ready from 'document-ready'
|
||||
import { initMixin } from './init'
|
||||
import { routerMixin } from './router'
|
||||
import { renderMixin } from './render'
|
||||
@ -30,4 +31,4 @@ Docsify.version = '__VERSION__'
|
||||
/**
|
||||
* Run Docsify
|
||||
*/
|
||||
setTimeout(_ => new Docsify(), 0)
|
||||
ready(_ => new Docsify())
|
||||
|
Loading…
Reference in New Issue
Block a user