Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pjax infinite loop problem #541

Closed
MetSystem opened this issue Jul 8, 2015 · 3 comments
Closed

Pjax infinite loop problem #541

MetSystem opened this issue Jul 8, 2015 · 3 comments

Comments

@MetSystem
Copy link

Why $. Pjax ({url: " main.htm ", container: '# home'}) write directly in $(function () {} it can cause has been main.htm. On both sides of the HTM circulation load switch
Use Google browser

@mislav
Copy link
Collaborator

mislav commented Jul 8, 2015

You never explained what you're trying to do, but the reason why you have an infinite loop problem is because you're performing $.pjax() call on every page load. Pjax itself results in a page load, meaning that every page load will trigger another page load, resulting in infinite loop.

Don't perform $.pjax() within $(function() {}).

@mislav mislav closed this as completed Jul 8, 2015
@MetSystem
Copy link
Author

That is what I use.
$(function() {
$.pjax();
}).
Other people to download version of history can be normal use,
While downloading on making a cyclic loading.

@MetSystem
Copy link
Author

Try again today, found that didn't seem that cycle of problem.
It's odd.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants