Update description & README just a little.
This commit is contained in:
11
README.md
11
README.md
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
<img align="right" src="https://dl.dropboxusercontent.com/u/14108185/memes/mind-blow.gif">
|
<img align="right" src="https://dl.dropboxusercontent.com/u/14108185/memes/mind-blow.gif">
|
||||||
|
|
||||||
> When Ajax navigation meets Push State
|
> Easily enable fast Ajax navigation on any website (using pushState + xhr)
|
||||||
|
|
||||||
Pjax is ~~a jQuery plugin~~ **a standalone JavaScript module** that uses
|
Pjax is ~~a jQuery plugin~~ **a standalone JavaScript module** that uses
|
||||||
ajax (XmlHttpRequest) and
|
ajax (XmlHttpRequest) and
|
||||||
@@ -10,7 +10,10 @@ ajax (XmlHttpRequest) and
|
|||||||
to deliver a fast browsing experience.
|
to deliver a fast browsing experience.
|
||||||
|
|
||||||
_It allow you to completely transform user experience of standard websites
|
_It allow you to completely transform user experience of standard websites
|
||||||
(server side generated or static ones) to make them feel they browse an app._
|
(server side generated or static ones) to make them feel they browse an app.
|
||||||
|
Especially for user that have low bandwidth connection._
|
||||||
|
|
||||||
|
**No more full page reload. No more lots of HTTP request.**
|
||||||
|
|
||||||
## No tests or Demo ?
|
## No tests or Demo ?
|
||||||
|
|
||||||
@@ -223,7 +226,7 @@ Callbacks are binded to Pjax instance itself to allow you to reuse it (ex: `this
|
|||||||
|
|
||||||
###### Create a switch callback
|
###### Create a switch callback
|
||||||
|
|
||||||
Your function can do whatever you want, be should
|
Your function can do whatever you want, but you need to:
|
||||||
|
|
||||||
- replace oldEl content by newEl content in some fashion
|
- replace oldEl content by newEl content in some fashion
|
||||||
- call `this.onSwitch()` to trigger attached callback.
|
- call `this.onSwitch()` to trigger attached callback.
|
||||||
@@ -274,7 +277,7 @@ new Pjax({
|
|||||||
})
|
})
|
||||||
```
|
```
|
||||||
_Note that remove class include `Animated--reverse` which is a simple way to not have
|
_Note that remove class include `Animated--reverse` which is a simple way to not have
|
||||||
to create duplicate transition for (slideIn + reverse => slideOut).
|
to create duplicate transition for (slideIn + reverse => slideOut)._
|
||||||
|
|
||||||
The following CSS will be required to make something nice
|
The following CSS will be required to make something nice
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "pjax",
|
"name": "pjax",
|
||||||
"version": "0.1.2",
|
"version": "0.1.2",
|
||||||
"description": "Boost browsing experience using Ajax navigation (+ Push state)",
|
"description": "Easily enable fast Ajax navigation on any website (using pushState + xhr)",
|
||||||
"main": "src/pjax.js",
|
"main": "src/pjax.js",
|
||||||
"homepage": "https://github.com/MoOx/pjax",
|
"homepage": "https://github.com/MoOx/pjax",
|
||||||
"authors": [
|
"authors": [
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "pjax",
|
"name": "pjax",
|
||||||
"version": "0.1.2",
|
"version": "0.1.2",
|
||||||
"description": "Boost browsing experience using Ajax navigation (+ Push state)",
|
"description": "Easily enable fast Ajax navigation on any website (using pushState + xhr)",
|
||||||
"main": "src/pjax.js",
|
"main": "src/pjax.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "echo \"Error: no test specified\" && exit 1"
|
"test": "echo \"Error: no test specified\" && exit 1"
|
||||||
|
|||||||
Reference in New Issue
Block a user