How to use pjax-api - 3 common examples

To help you get started, we’ve selected a few pjax-api examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github falsandtru / pjax-api / gh-pages / assets / js / config.js View on Github external
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'); });
github falsandtru / pjax-api / demo / basic / config.js View on Github external
var Pjax = require('pjax-api').Pjax;
new Pjax({
  areas: [
    '#header, #primary',
    '#container',
    'body'
  ]
});
github falsandtru / pjax-api / gh-pages / demo / basic / config.js View on Github external
var Pjax = require('pjax-api').Pjax;
new Pjax({
  areas: [
    '#header, #primary',
    '#container',
    'body'
  ]
});

pjax-api

The advanced PJAX superior to SPA.

Apache-2.0
Latest version published 3 months ago

Package Health Score

59 / 100
Full package analysis

Popular pjax-api functions