superbig / craft-pjax
Automagically return the headers and container that PJAX expects
Installs: 1 231
Dependents: 0
Suggesters: 0
Security: 0
Stars: 8
Watchers: 3
Forks: 0
Open Issues: 3
Type:craft-plugin
Requires
- craftcms/cms: ^3.0.0-beta.23
- symfony/css-selector: ^2.7|^3.0|^4.0
- symfony/dom-crawler: ^2.7|^3.0|^4.0
- tightenco/collect: ^5.5
This package is auto-updated.
Last update: 2022-07-14 19:31:23 UTC
README
Automagically return the headers and container that PJAX expects
Requirements
This plugin requires Craft CMS 3.0.0-beta.23 or later.
Installation
To install the plugin, follow these instructions.
-
Open your terminal and go to your Craft project:
cd /path/to/project
-
Then tell Composer to load the plugin:
composer require superbig/craft-pjax
-
In the Control Panel, go to Settings → Plugins and click the “Install” button for PJAX.
PJAX Overview
pjax is a jQuery plugin that uses ajax and pushState to deliver a fast browsing experience with real permalinks, page titles, and a working back button.
pjax works by fetching HTML from your server via ajax and replacing the content of a container element on your page with the loaded HTML. It then updates the current URL in the browser using pushState.
Brought to you by Superbig