File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -34,16 +34,24 @@ NProgress.start();
34
34
NProgress .done ();
35
35
~~~
36
36
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 ) )
40
40
41
41
~~~ js
42
42
$ (document ).on (' page:fetch' , function () { NProgress .start (); });
43
43
$ (document ).on (' page:change' , function () { NProgress .done (); });
44
44
$ (document ).on (' page:restore' , function () { NProgress .remove (); });
45
45
~~~
46
46
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
+
47
55
Ideas
48
56
-----
49
57
You can’t perform that action at this time.
0 commit comments