Add pjax for faster page loads

This commit is contained in:
Tom Raithel
2017-02-13 09:23:56 +01:00
parent 292a2b045c
commit f8c5bb7855
6 changed files with 30 additions and 3 deletions

10
js/pjax.js Normal file
View File

@@ -0,0 +1,10 @@
import Pjax from 'pjax';
const applyPjax = () => {
new Pjax({
elements: '.js--body a',
selectors: ['title', '.js--body'],
});
};
export default applyPjax;