hexo-theme-next
Advanced tools
Comparing version 8.14.1 to 8.14.2
{ | ||
"name": "hexo-theme-next", | ||
"version": "8.14.1", | ||
"version": "8.14.2", | ||
"description": "Elegant and powerful theme for Hexo.", | ||
@@ -38,3 +38,3 @@ "main": "package.json", | ||
"chai": "4.3.7", | ||
"eslint": "8.31.0", | ||
"eslint": "8.33.0", | ||
"hexo": "6.3.0", | ||
@@ -45,4 +45,4 @@ "hexo-renderer-marked": "6.0.0", | ||
"stylelint": "14.16.1", | ||
"stylelint-stylus": "0.17.0" | ||
"stylelint-stylus": "0.17.1" | ||
} | ||
} |
@@ -6,10 +6,10 @@ /* global NexT, CONFIG, DISQUS */ | ||
if (CONFIG.disqus.count) { | ||
const loadCount = () => { | ||
if (window.DISQUSWIDGETS) { | ||
window.DISQUSWIDGETS.getCount({ reset: true }); | ||
} else { | ||
// Defer loading until the whole page loading is completed | ||
NexT.utils.getScript(`https://${CONFIG.disqus.shortname}.disqus.com/count.js`, { | ||
attributes: { id: 'dsq-count-scr' } | ||
attributes: { id: 'dsq-count-scr', defer: true } | ||
}); | ||
}; | ||
// defer loading until the whole page loading is completed | ||
window.addEventListener('load', loadCount, false); | ||
} | ||
} | ||
@@ -16,0 +16,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
3018
461406