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();
3434NProgress .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+
4755Ideas
4856-----
4957
You can’t perform that action at this time.
0 commit comments