From 3d1332f28dcf03462ad3dba2a5195ace0d7d87cc Mon Sep 17 00:00:00 2001 From: XPoet Date: Thu, 31 Dec 2020 16:38:31 +0800 Subject: [PATCH] perf: modified pjax config --- layout/_partial/pjax/pjax.ejs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/layout/_partial/pjax/pjax.ejs b/layout/_partial/pjax/pjax.ejs index 11a9e59..95aefa4 100644 --- a/layout/_partial/pjax/pjax.ejs +++ b/layout/_partial/pjax/pjax.ejs @@ -7,9 +7,13 @@ '.page-container', '.pjax', ], + history: true, cacheBust: false, currentUrlFullReload: false, - timeout: 0 + timeout: 0, + scrollTo: false, + scrollRestoration: false, + debug: false, }); window.addEventListener('pjax:complete', () => {