3.25.0-tsc.3 • Published 7 years ago
pjax-api-tsc v3.25.0-tsc.3
pjax-api-tsc
falsandtru氏のプラグイン「pjax-api」をWebpackでコンパイルしたものです。オリジナルで提供されているbrowseify製のものでは不都合な場合にご利用ください。
npm install pjax-api-tscPJAX
The second generation PJAX for the advanced web frameworks.
Features
| 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 |
| Execution sequence keeping | X | O | X |
| Non-blocking script load | O | O | O |
| Lightweight source rewrite | X | O | O |
| Cache | O | X | O |
| URL scope | X | O | X |
| URL scope-based override settings | X | O | X |
| Browser history fix | X | O | X |
| Scroll position restoration | X | O | X |
| NOSCRIPT tag restoration | X | O | X |
Documents, APIs, and Demos
Usage
<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'
]
});Browsers
Requires es6 and modern DOM API support.
- Chrome
- Firefox
- Safari
- Edge
Polyfill: https://cdn.polyfill.io