defunkt / jquery-pjax

pushState + ajax = pjax
https://pjax.herokuapp.com
MIT License
16.73k stars 1.97k forks source link

$(document).pjax('a', '#pjax-container') in document is not working #606

Closed w5s3l0 closed 8 years ago

w5s3l0 commented 8 years ago

$(document).pjax('a', '#pjax-container') not working the code must contain timeout option ,like : $(document).pjax('a', '#pjax-container',{timeout:10000})

mislav commented 8 years ago

The default timeout of 650ms likely wasn't enough for your server to reply, so you had to increase it. This is expected behavior and not a bug of pjax. That's why the configuration option is for!

Thanks for letting people know of the workaround, though.