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
Our Free Plans just got better! | Auth0 Icon
Our Free Plans just got better! | Auth0

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your security. Auth0 now, thank yourself later.
Try free now
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