Answer the question
In order to leave comments, you need to log in
How to solve problem with content loaded before ajax event?
The bottom line is this:
1. After processing ajax (content is being deleted), follow the link to another page of the site
2. We return to the browser's "Back" button and the content changed using ajax remains old, as if it had not been updated in step 1
When you refresh the page, of course everything is in place, as expected.
Answer the question
In order to leave comments, you need to log in
so the page, consider updated, i.e. re-generated, and because the event after which the content is removed did not occur. I don't know the context of what's going on. Try creating a cookie which means the content has been removed. and thereby generate a new page without that content.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question