pjax

pjax:
  enable: false

This configuration item is used to enable the PJAX function of the theme, bringing you a single-page application experience.

PJAX works by fetching HTML from the server via Ajax, and replacing the content of the container on the page with the HTML from the Ajax request, then using pushState to update the browser's current URL without reloading the page's layout or any resources (JS, CSS), Thus giving the appearance of fast, full page loads. But it's just Ajax and pushState.

After PJAX is enabled, when you click the page to jump, a colored progress bar will appear at the top of the page.

Last updated