Skip to content

Commit 4d1745b

Browse files
committed
Readme: add pjax instructions
1 parent f094b7c commit 4d1745b

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

Readme.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,24 @@ NProgress.start();
3434
NProgress.done();
3535
~~~
3636

37-
Using [Turbolinks] or similar? Ensure you're using Turbolinks 1.3.0+, and use
38-
this: (explained
39-
[here](https://github.com/rstacruz/nprogress/issues/8#issuecomment-23010560))
37+
### Turbolinks
38+
Ensure you're using Turbolinks 1.3.0+, and use
39+
this: (explained [here](https://github.com/rstacruz/nprogress/issues/8#issuecomment-23010560))
4040

4141
~~~ js
4242
$(document).on('page:fetch', function() { NProgress.start(); });
4343
$(document).on('page:change', function() { NProgress.done(); });
4444
$(document).on('page:restore', function() { NProgress.remove(); });
4545
~~~
4646

47+
### Pjax
48+
Try this: (explained [here](https://github.com/rstacruz/nprogress/issues/22#issuecomment-36540472))
49+
50+
~~~ js
51+
$(document).on('pjax:start', function() { NProgress.start(); });
52+
$(document).on('pjax:end', function() { NProgress.done(); });
53+
~~~
54+
4755
Ideas
4856
-----
4957

0 commit comments

Comments
 (0)