修复启用pjax后footer处自定义增删内容脚本不再重新加载的bug #963
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
添加了启用pjax后跳转后仍需反复重新加载的脚本的内容,
少部分玩家可能在footer处引入了动态添加备案信息的玩法或者自定义增删全局内容的玩法,
但是很遗憾,为了能启用不中断播放的页底播放器,在启用pjax后这些脚本会在跳转后失效,
在header处引用虽然能加载但是动态修改内容功能无效了,所以现在需要在pjax加载完成后刷新一遍。
这段代码可以让那些魔改玩法保活。