PJAX still requesting full pages?
PJAX is most likely timing out because your app is too slow and that's a whole other problem.
Try this on for size:
$(document).on 'pjax:timeout', ->
return false # inifinite timeout! get out your favorite ajax spinner!
$(document).on 'click', 'a[data-pjax]', (e) ->
e.preventDefault()
return $.pjax.click(e, '#content')
Written by Sean
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Rails
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#