Just enabled PJAX and ran into issues. Some JS functions, despite having the data-pjax attribute, still didn’t reload. This problem appeared in a user-customized JS function for calculating reading time.

1// Original function
2aaaaaaaaaaaaaaa;
3// Current function
4function pjax_reload() {
5    aaaaaaaaaaaaaaa;
6}
7document.addEventListener("pjax:complete", function () {
8  pjax_reload(); // Reload the above function after Pjax completes
9});