Pjax is a standalone JavaScript module that uses AJAX (XmlHttpRequest) and pushState() to deliver a fast browsing experience. It allows you to completely transform the user experience of standard websites (server-side generated or static ones) to make users feel like they are browsing an app, especially for those with low bandwidth connections. Pjax does not rely on other libraries, like jQuery or similar. It is written entirely in vanilla JS. Pjax loads pages using AJAX and updates the browser's current URL using pushState() without reloading your page's layout or any resources (JS, CSS), giving a fast page load. It works with all permalinks and can update all the parts of the page you want (including HTML metas, title, and navigation state). It listens to every click on links you want (by default all of them). When an internal link is clicked, Pjax fetches the page's HTML via AJAX.

Features

  • Fully supports browser history (back and forward buttons)
  • Supports keyboard browsing
  • Automatically falls back to standard navigation for external pages (thanks to Captain Obvious's help)
  • Automatically falls back to standard navigation for internal pages that do not have an appropriate DOM tree
  • Allows for CSS transitions (animations) very easily
  • Is only around 6kb (minified and gzipped)

Project Samples

Project Activity

See All Activity >

Categories

AJAX

License

MIT License

Follow Pjax module

Pjax module Web Site

You Might Also Like
Red Hat Ansible Automation Platform on Microsoft Azure Icon
Red Hat Ansible Automation Platform on Microsoft Azure

Red Hat Ansible Automation Platform on Azure allows you to quickly deploy, automate, and manage resources securely and at scale.

Deploy Red Hat Ansible Automation Platform on Microsoft Azure for a strategic automation solution that allows you to orchestrate, govern and operationalize your Azure environment.
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Pjax module!

Additional Project Details

Programming Language

JavaScript

Related Categories

JavaScript AJAX Software

Registered

2022-02-23