优化一下博客的性能
This commit is contained in:
1 parent
15421ff0ac
commit
427b17d7a0
24 files changed
+2045
-148
No files matched your search
@@ -50,6 +50,16 @@ function pjax_reload() {
|
||||
}
|
||||
}
|
||||
|
||||
function refreshHeatmap() {
|
||||
if (typeof renderHeatmap === 'function') {
|
||||
try {
|
||||
renderHeatmap();
|
||||
} catch (e) {
|
||||
console.error('renderHeatmap error:', e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// pjax发送时期
|
||||
document.addEventListener("pjax:send", function () {
|
||||
// pjax动画减少圆圈动画
|
||||
@@ -141,4 +151,6 @@ document.addEventListener("pjax:complete", function () {
|
||||
window.initSearch();
|
||||
} catch(e) { console.error('initSearch error:', e); }
|
||||
}
|
||||
|
||||
refreshHeatmap();
|
||||
});
|
||||
Reference in new issue
Block a user