PJAX

The second generation PJAX for the advanced web frameworks.

Feature

  • Basic
    • Multiple area update
    • Fallback area matching
    • CSS markless auto sync
    • Script markless auto load
    • more
  • Concurrency integration

Installation

$ npm i pjax-api
<script src="/js/pjax-api.js"></script>
<script src="/js/config.js"></script>
// config.js
var Pjax = require('pjax-api').Pjax;
new Pjax({
  areas: [
    // try to use the first query.
    '#header, #primary',
    // fallback, retrying with the second query.
    '#container',
    // fallback.
    'body'
  ]
});

Browser

Requires es6 support.

  • Chrome
  • Firefox
  • Safari
  • Edge