awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
defunkt avatar

defunkt/jquery-pjax

0
View on GitHub↗
16,650 stars·1,930 forks·JavaScript·MIT·19 viewspjax.herokuapp.com↗

Jquery Pjax

jquery-pjax is a client-side library that combines Ajax requests with the HTML5 History API to replace page content without triggering a full browser reload. It fetches HTML fragments from the server and updates the browser URL using pushState, preserving the page layout and assets while only swapping a designated container's content. The library emits custom JavaScript events at each stage of the request lifecycle, enabling external handlers to respond to loading, success, and error states.

The project distinguishes itself through its event-driven navigation model and server-side integration. It detects the X-PJAX header on incoming requests, allowing the server to return only the inner container HTML instead of the full page layout. A versioned cache busting mechanism uses a header and meta tag to force a full page reload when server-side assets or layout change. The library also supports form serialization via Ajax, programmatic navigation through a JavaScript API, and container content reload without adding a browser history entry.

The documentation covers server configuration for header detection and fragment delivery, as well as client-side setup for lifecycle event handling and programmatic triggers.

Features

  • AJAX Page Loaders - Replaces page content via Ajax and updates the browser URL using pushState without a full page reload.
  • Ajax Request Lifecycle Hooks - Emits custom JavaScript events at each stage of the request lifecycle for external handler attachment.
  • Pjax Navigation Triggers - Initiate a pjax request from custom JavaScript code by specifying the URL and target container manually.
  • Server-Driven Fragment Replacement - The server detects the X-PJAX header and returns only the inner container HTML instead of the full layout.
  • AJAX Content Swapping - Fetches HTML fragments via XMLHttpRequest and swaps them into a designated DOM container.
  • Pjax Lifecycle Hooks - Respond to each stage of a pjax request with custom handlers for loading indicators, error recovery, and content replacement.
  • Partial Page Loaders - Provides a client-side library for loading only a container's HTML from the server while preserving layout and assets.
  • AJAX Request Lifecycle Hooks - Emits lifecycle events for loading, success, and error states during pjax requests.
  • Non-Reloading History Updates - Updates the browser URL and history using the HTML5 History API without triggering a full page reload.
  • Pjax Header Detection - Detect the X-PJAX header on the server and return only the inner container HTML, skipping the full page layout.
  • Programmatic Navigation - Exposes a JavaScript method to trigger pjax requests manually with a URL and container selector.
  • Partial Page Fragments - Fetches and swaps a portion of the page based on server responses, skipping full layout rendering.
  • Version-Triggered Full Reloads - Uses a version header and meta tag to force a full page reload when the server-side layout or assets change.
  • Container Content Reloads - Refetch the current URL via Ajax and replace the container's content without adding a browser history entry.
  • Version-Triggered Reloads - Set a version header and meta tag so clients perform a hard reload when assets or layout HTML change.
  • Ajax Form Submissions - Serializes form data and submits it as an Ajax request, replacing the target container with the response.
  • Asynchronous Form Submissions - Send form data as an Ajax request and replace a container's content with the server response without a full page reload.
  • 路由和链接(Routing And URLs) - Listed in the “路由和链接(Routing And URLs)” section of the Awesome Frontend awesome list.

Star history

Star history chart for defunkt/jquery-pjaxStar history chart for defunkt/jquery-pjax

How this analysis was created: This summary and feature list were written by an AI model that read the project's README and public documentation pages. Each feature links to the documentation it came from; stars, license and language come straight from the GitHub API. The model does not read the source code, and the analysis is refreshed when the project is re-analysed. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Open-source alternatives to Jquery Pjax

Similar open-source projects, ranked by how many features they share with Jquery Pjax.
  • swup/swupswup avatar

    swup/swup

    5,191View on GitHub↗

    Swup is a page transition library and AJAX page loader designed to create seamless, animated transitions between pages on server-rendered websites. It functions as a DOM content orchestrator and browser history manager, intercepting navigation to replace page content dynamically and simulate a single-page application experience. The project differentiates itself through a hook-based lifecycle system and a plugin architecture that allows for the injection of custom logic and animation effects. It supports advanced visual methods including DOM content morphing, parallel-DOM rendering for overla

    TypeScriptanimationjavascriptpage-transitions
    View on GitHub↗5,191
  • bigskysoftware/intercooler-jsbigskysoftware avatar

    bigskysoftware/intercooler-js

    4,787View on GitHub↗

    Intercooler-js is a declarative AJAX framework and server-driven UI library. It functions as a hypermedia web framework that enables the creation of single-page experiences by replacing specific DOM elements with HTML fragments delivered from a server. The library distinguishes itself by using HTML attributes to map DOM elements to server endpoints, allowing for asynchronous HTTP requests and DOM updates without manual scripting. It supports a hypermedia-driven architecture where the server controls the client state through response headers and the delivery of annotated HTML fragments. The p

    HTMLfront-endhtmljavascript
    View on GitHub↗4,787
  • barbajs/barbabarbajs avatar

    barbajs/barba

    12,940View on GitHub↗

    Barba is a JavaScript page transition library that intercepts browser navigation to swap page content and animate transitions without a full page refresh. It functions as an AJAX page loader and client-side navigation manager, coordinating the lifecycle of transitions through hooks and custom logic during view changes. The library distinguishes itself as a frontend animation orchestrator that triggers specific visual effects and scripts based on the source and destination of a website page. It employs a rules-based system to resolve which specific animation or transition to execute by matchin

    TypeScript
    View on GitHub↗12,940
  • orchidsoftware/platformorchidsoftware avatar

    orchidsoftware/platform

    4,791View on GitHub↗

    This project is a rapid application development framework for building back-office interfaces and dashboards within Laravel applications. It functions as a backend management UI toolkit and schema-based UI generator that renders administration panels and data forms by mapping backend logic to pre-defined frontend components. The framework includes a role-based access control system to restrict application features and data based on user identity and assigned roles. It also provides a full-text search integration that uses interchangeable drivers to index and retrieve application content. Add

    PHP
    View on GitHub↗4,791
See all 30 alternatives to Jquery Pjax→

Frequently asked questions

What does defunkt/jquery-pjax do?

jquery-pjax is a client-side library that combines Ajax requests with the HTML5 History API to replace page content without triggering a full browser reload. It fetches HTML fragments from the server and updates the browser URL using pushState, preserving the page layout and assets while only swapping a designated container's content. The library emits custom JavaScript events at each stage of the request lifecycle, enabling external handlers to respond to loading, success,…

What are the main features of defunkt/jquery-pjax?

The main features of defunkt/jquery-pjax are: AJAX Page Loaders, Ajax Request Lifecycle Hooks, Pjax Navigation Triggers, Server-Driven Fragment Replacement, AJAX Content Swapping, Pjax Lifecycle Hooks, Partial Page Loaders, AJAX Request Lifecycle Hooks.

What are some open-source alternatives to defunkt/jquery-pjax?

Open-source alternatives to defunkt/jquery-pjax include: swup/swup — Swup is a page transition library and AJAX page loader designed to create seamless, animated transitions between pages… bigskysoftware/intercooler-js — Intercooler-js is a declarative AJAX framework and server-driven UI library. It functions as a hypermedia web… barbajs/barba — Barba is a JavaScript page transition library that intercepts browser navigation to swap page content and animate… orchidsoftware/platform — This project is a rapid application development framework for building back-office interfaces and dashboards within… browserstate/history.js — history.js is a cross-browser URL state manager and HTML5 History API polyfill. It functions as a single page… visionmedia/page.js — page.js is a client-side JavaScript router for single-page applications that maps URL patterns to executable…