pjax局部刷新JS没有正常加载

我的博客地址: https://su1018.cn/ https://su1018.cn/
不知哪里得问题,从网上找来得pjax局部无刷新代码。点击其他页面再点首页得时候幻灯片JS好像没有加载出来了,内容页面得评论JS也加载不出来
求看怎么回事,帮我写个pjax得规则,这个我是一点都不懂,网上把来的代码,ID什么得也都改好了就是不知道哪里出现得问题


<script src="https://su1018.cn/content/templates/Joe/js/jquery.pjax.js"></script>
<script>
    $(document).pjax('a[target!=_blank]', '#Joe', {fragment:'#Joe', timeout:8000}); 
    //评论和搜索等form提交事件无刷新
    $(document).on('submit', 'form', function(event){
        $.pjax.submit(event, '#Joe',{fragment:'#Joe', timeout:8000});
    });
    //post-content、代码框code-toolbar和评论区comment-part giligili-item局部重新刷新
    //重新加载js文件
$(document).on('pjax:complete',function(){
    if(typeof prism == 'undefined'){   //一个if就够了没必要每个js文件都判断
        $.getScript("https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.min.js");
    }
});
</script>


$(function () {
  //把代码放在这里面试试
})