Add pjax for faster page loads
This commit is contained in:
10
js/pjax.js
Normal file
10
js/pjax.js
Normal file
@@ -0,0 +1,10 @@
|
||||
import Pjax from 'pjax';
|
||||
|
||||
const applyPjax = () => {
|
||||
new Pjax({
|
||||
elements: '.js--body a',
|
||||
selectors: ['title', '.js--body'],
|
||||
});
|
||||
};
|
||||
|
||||
export default applyPjax;
|
||||
Reference in New Issue
Block a user