πŸ‡¨πŸ‡¦
hexo-theme-redefine
BlogGithub
English
English
  • Project Description
  • Get Started
    • Installation
    • Update
    • Usage
  • Configuration
    • Create a theme config file
    • base_info
    • style
      • primary_color
      • avatar
      • favicon
      • article_img_align
      • left_side_width
      • content_max_width
      • nav_color
      • hover
      • first_screen
      • scroll
    • social_contact
    • menu
    • home_article
    • post
      • word_count
      • author_label
    • toc
    • copyright_info
    • website_count
    • local_search
    • comment
      • use
      • Waline
      • Gitalk
      • Twikoo
    • rss
    • lazyload
    • cdn
    • pjax
    • footer
  • Advanced
    • Create a page
    • Note modules
    • Article top
    • Mathematical formula
    • Friendship style
    • file comparison
    • Resource compression
Powered by GitBook
On this page
  1. Configuration

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.

PreviouscdnNextfooter

Last updated 2 years ago