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

Other Useful Business Software
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
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