O
O
ohhimark2020-04-26 15:25:32
JavaScript
ohhimark, 2020-04-26 15:25:32

Why aren't scripts inside pjax dynamically loaded/unloaded?

When clicking on links, pjax loads data into a dynamic container, however, the old scripts that were in it are not unloaded, and the scripts that are in the updated container do not work. For example, when you go to the user profile, his avatar is not loaded, but when the page is refreshed, everything works fine. How can this be fixed?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question