Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
var Pjax = require('pjax-api').Pjax;
new Pjax({
areas: [
'#container',
'body'
]
});
window.addEventListener('pjax:fetch', function () { console.time('pjax: fetch -> ready'); });
document.addEventListener('pjax:ready', function () { console.timeEnd('pjax: fetch -> ready'); });
var Pjax = require('pjax-api').Pjax;
new Pjax({
areas: [
'#header, #primary',
'#container',
'body'
]
});
var Pjax = require('pjax-api').Pjax;
new Pjax({
areas: [
'#header, #primary',
'#container',
'body'
]
});