Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PJAX 事件 | Kratos : Rebirth #10

Open
Candinya opened this issue Oct 1, 2024 · 0 comments
Open

PJAX 事件 | Kratos : Rebirth #10

Candinya opened this issue Oct 1, 2024 · 0 comments

Comments

@Candinya
Copy link
Member

Candinya commented Oct 1, 2024

https://wiki.krt.moe/posts/pjax-events/

Kratos : Rebirth 使用了一种名为 PJAX (PushState + AJAX) 的技术来实现页面组件的部分更新,以避免对页面间的共享项(如站点播放器)产生干扰。因为这项技术并不会在页面更新时自动重新执行所有的脚本项,所以我们增加了一些事件,用于指引自定义的脚本在页面重载时被正确执行。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant