Only loading new page after AJAX calls finish #183
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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! :-)