The second generation PJAX for the advanced web frameworks.
Feature | defunkt | falsandtru | Turbolinks |
---|---|---|---|
Concurrency integration | X | O | X |
Multiple area update | X | O | O |
Fallback area matching | X | O | X |
Content type validation | X | O | O |
HEAD contents markless auto sync | X | O | X |
CSS markless auto sync | X | O | X |
Script markless auto load | X | O | X |
External script load | O | O | O |
Inline script execution | X | O | O |
Keep execution sequence | X | O | X |
Non-blocking script load | O | O | O |
Lightweight source rewrite | X | O | O |
Caching | O | X | O |
URL scope | X | O | X |
URL scope base ovarride setting | X | O | X |
Browser history fix | X | O | X |
Scroll position restoration | X | O | X |
NOSCRIPT tag restoration | X | O | X |
<script src="/js/pjax-api.js"></script>
import Pjax from 'pjax-api';
new Pjax({
areas: [
// try to use the first query.
'#header, #primary',
// fallback, retrying with the second query.
'#container',
// fallback.
'body'
]
});
Requires es6 and modern DOM API support.
- Chrome
- Firefox
- Safari
- Edge
Polyfill: https://cdn.polyfill.io