# defunkt/jquery-pjax

pushState + ajax = pjax

Repository: https://github.com/defunkt/jquery-pjax
Canonical: https://ross.abutalabs.com/products/jquery-pjax
Homepage: https://pjax.herokuapp.com
Language: JavaScript
License: MIT
License Family: permissive
Last push: 2022-11-30T22:59:46+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 5667, "days_push": 1372, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 16642, forks 1925 (observed 2026-08-28T04:11:16.888643+00:00)

## What it is
A jQuery plugin that combines ajax and the HTML5 pushState API to enable fast, partial-page navigation with real URLs, page titles, and working back-button support. It fetches HTML fragments from the server and swaps them into a container element without full page reloads.

## Use cases
- speed up page navigation on a server-rendered site without a full SPA rewrite
- keep browser back/forward buttons and permalinks working while loading content via ajax
- serve partial page HTML to avoid re-rendering full layouts
- progressively enhance specific links with pjax using data attributes
- migrate a legacy jQuery site toward faster client-side navigation

## When to choose
- you have an existing jQuery-based, server-rendered site and want faster navigation without adopting a full SPA framework
- your server can render partial layouts for pjax requests
- you need real permalinks and history support with ajax-loaded content

## When to avoid
- you are starting a new project - modern frameworks or Turbolinks-style libraries are better supported
- you need new features or guaranteed bug fixes - the project is frozen and largely unmaintained
- your stack does not depend on jQuery

## Facets
- artifact type: plugin
- maturity: maintenance
- function: http-client, routing, middleware
- domain: web-development, frontend
- platform: browser
- tags: pjax, pushstate, ajax-navigation, jquery-plugin, unmaintained, jquery

## Member repositories
- defunkt/jquery-pjax (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:16.888643+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:04:49.817147+00:00, confidence not recorded.
  - readme: https://github.com/defunkt/jquery-pjax (fetched 2026-08-28T04:11:16.888643+00:00, sha 69b4b3634827)
  - registry_npm: https://registry.npmjs.org/jquery-pjax (fetched 2026-08-29T08:02:20.389359+00:00, sha a94e6e2ebdfc)
- Data as of 2026-08-30T08:39:29.467469+00:00.
