Add pjax for faster page loads
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
import Vue from 'vue';
|
||||
import applyPjax from './pjax';
|
||||
|
||||
|
||||
const initFilter = element => {
|
||||
const index = JSON.parse(element.getAttribute('data-index'));
|
||||
@@ -24,6 +26,12 @@ const initFilter = element => {
|
||||
return visibleItems.length > 0;
|
||||
},
|
||||
},
|
||||
created() {
|
||||
applyPjax();
|
||||
},
|
||||
updated() {
|
||||
applyPjax();
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user