Coder Social home page Coder Social logo

takanorikamaguchi / pjax-api Goto Github PK

View Code? Open in Web Editor NEW

This project forked from falsandtru/pjax-api

0.0 1.0 0.0 5.05 MB

The second generation PJAX for the advanced web frameworks.

Home Page: http://falsandtru.github.io/pjax-api/

License: Apache License 2.0

Ruby 0.03% HTML 8.39% CSS 7.77% JavaScript 3.83% TypeScript 79.99%

pjax-api's Introduction

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
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

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

pjax-api's People

Contributors

falsandtru avatar newnotmoon avatar sgougi avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.