1
0
mirror of https://github.com/cotes2020/jekyll-theme-chirpy.git synced 2025-12-28 18:45:48 +00:00

perf: avoid the layout shift for post datetime

This commit is contained in:
Cotes Chung
2022-04-26 00:39:58 +08:00
parent 42c44a8bc1
commit 6d35f5f8da
20 changed files with 87 additions and 160 deletions

View File

@@ -34,7 +34,7 @@ const commonsJs = () => {
const homeJs = () => {
return concatJs([
`${JS_SRC}/commons/*.js`,
`${JS_SRC}/utils/timeago.js`
`${JS_SRC}/utils/locale-datetime.js`
],
'home'
);
@@ -44,7 +44,7 @@ const postJs = () => {
return concatJs([
`${JS_SRC}/commons/*.js`,
`${JS_SRC}/utils/img-extra.js`,
`${JS_SRC}/utils/timeago.js`,
`${JS_SRC}/utils/locale-datetime.js`,
`${JS_SRC}/utils/checkbox.js`,
`${JS_SRC}/utils/clipboard.js`,
// 'smooth-scroll.js' must be called after ToC is ready