I'm not sure whether this problem is necessarily related to this plugin, but here goes:
Let's say I have page X which executes some long running AJAX calls on load.
If I click a link on page X that takes me to page Y (with pjax), it will not start loading page Y untill the AJAX calls mentioned above on page X finish.
Does anybody know what may be causing this? Or maybe someone knows some kind of 'hack' which cancels all current AJAX calls when clicking a link (as a temporarily solution). Because it obviously causes really poor performance when someone decides to quickly switch pages.
I'm not sure whether this problem is necessarily related to this plugin, but here goes:
Let's say I have page **X** which executes some long running AJAX calls on load.
If I click a link on page **X** that takes me to page **Y** (with pjax), it will not start loading page **Y** untill the AJAX calls mentioned above on page **X** finish.
Does anybody know what may be causing this? Or maybe someone knows some kind of 'hack' which cancels all current AJAX calls when clicking a link (as a temporarily solution). Because it obviously causes really poor performance when someone decides to quickly switch pages.
The AJAX call were/are all async. But I think it was a problem with my hosting, because it goes all well now, since I switched hosting.
Thanks anyway! :-)
The AJAX call were/are all async. But I think it was a problem with my hosting, because it goes all well now, since I switched hosting.
Thanks anyway! :-)
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
I'm not sure whether this problem is necessarily related to this plugin, but here goes:
Let's say I have page X which executes some long running AJAX calls on load.
If I click a link on page X that takes me to page Y (with pjax), it will not start loading page Y untill the AJAX calls mentioned above on page X finish.
Does anybody know what may be causing this? Or maybe someone knows some kind of 'hack' which cancels all current AJAX calls when clicking a link (as a temporarily solution). Because it obviously causes really poor performance when someone decides to quickly switch pages.
Is your AJAX call synchronous or async? Can you post the code that makes the AJAX call?
The AJAX call were/are all async. But I think it was a problem with my hosting, because it goes all well now, since I switched hosting.
Thanks anyway! :-)