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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user