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
Go From AI Idea to AI App Fast Icon
Go From AI Idea to AI App Fast

One platform to build, fine-tune, and deploy ML models. No MLOps team required.

Access Gemini 3 and 200+ models. Build chatbots, agents, or custom models with built-in monitoring and scaling.
Try 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