pjax-api-tsc

3.25.0-tsc.3 • Public • Published

pjax-api-tsc

falsandtru氏のプラグイン「pjax-api」をWebpackでコンパイルしたものです。オリジナルで提供されているbrowseify製のものでは不都合な場合にご利用ください。

npm install pjax-api-tsc

PJAX

Build Status Coverage Status Dependency Status

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

pjax-api

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

Readme

Keywords

Package Sidebar

Install

npm i pjax-api-tsc

Weekly Downloads

3

Version

3.25.0-tsc.3

License

(Apache-2.0 AND MPL-2.0)

Unpacked Size

1.46 MB

Total Files

102

Last publish

Collaborators

  • aqz