Skip to content

Commit 4417f46

Browse files
committed
[build] 4.2.9
1 parent b773506 commit 4417f46

File tree

5 files changed

+20
-7
lines changed

5 files changed

+20
-7
lines changed

Diff for: docs/_coverpage.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
![logo](_media/icon.svg)
22

3-
# docsify <small>4.2.8</small>
3+
# docsify <small>4.2.9</small>
44

55
> A magical documentation site generator.
66

Diff for: lib/docsify.js

+15-2
Original file line numberDiff line numberDiff line change
@@ -3789,6 +3789,19 @@ var initGlobalAPI = function () {
37893789
window.Prism = prism;
37903790
};
37913791

3792+
/**
3793+
* Fork https://github.com/bendrucker/document-ready/blob/master/index.js
3794+
*/
3795+
function ready (callback) {
3796+
var state = document.readyState;
3797+
3798+
if (state === 'complete' || state === 'interactive') {
3799+
return setTimeout(callback, 0)
3800+
}
3801+
3802+
document.addEventListener('DOMContentLoaded', callback);
3803+
}
3804+
37923805
function Docsify () {
37933806
this._init();
37943807
}
@@ -3809,11 +3822,11 @@ initGlobalAPI();
38093822
/**
38103823
* Version
38113824
*/
3812-
Docsify.version = '4.2.8';
3825+
Docsify.version = '4.2.9';
38133826

38143827
/**
38153828
* Run Docsify
38163829
*/
3817-
setTimeout(function (_) { return new Docsify(); }, 0);
3830+
ready(function (_) { return new Docsify(); });
38183831

38193832
}());

Diff for: lib/docsify.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: packages/docsify-server-renderer/package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: packages/docsify-server-renderer/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "docsify-server-renderer",
3-
"version": "4.2.8",
3+
"version": "4.2.9",
44
"description": "docsify server renderer",
55
"author": {
66
"name": "qingwei-li",

0 commit comments

Comments
 (0)