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

Descubre los mejores repositorios open-source con nuestra búsqueda potenciada por IA.

ExplorarBúsquedas curadasAlternativas open-sourceSoftware autohospedableBlogMapa del sitio
ProyectoAcerca deCómo clasificamosPrensaServidor MCP
Aviso legalPrivacidadTérminos
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
defunkt avatar

defunkt/jquery-pjax

0
View on GitHub↗
16,650 estrellas·1,930 forks·JavaScript·MIT·5 vistaspjax.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.

Historial de estrellas

Gráfico del historial de estrellas de defunkt/jquery-pjaxGráfico del historial de estrellas de defunkt/jquery-pjax

Búsqueda con IA

Explora más repositorios increíbles

Describe lo que necesitas en lenguaje sencillo: la IA clasifica miles de proyectos open-source curados por relevancia.

Start searching with AI

Preguntas frecuentes

¿Qué hace defunkt/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,…

¿Cuáles son las características principales de defunkt/jquery-pjax?

Las características principales de defunkt/jquery-pjax son: 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.

¿Qué alternativas de código abierto existen para defunkt/jquery-pjax?

Las alternativas de código abierto para defunkt/jquery-pjax incluyen: 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…

Alternativas open-source a Jquery Pjax

Proyectos open-source similares, clasificados según cuántas características comparten con Jquery Pjax.
  • swup/swupAvatar de swup

    swup/swup

    5,191Ver en 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
    Ver en GitHub↗5,191
  • bigskysoftware/intercooler-jsAvatar de bigskysoftware

    bigskysoftware/intercooler-js

    4,787Ver en 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
    Ver en GitHub↗4,787
  • barbajs/barbaAvatar de barbajs

    barbajs/barba

    12,940Ver en 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
    Ver en GitHub↗12,940
  • orchidsoftware/platformAvatar de orchidsoftware

    orchidsoftware/platform

    4,791Ver en 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
    Ver en GitHub↗4,791
  • Ver las 30 alternativas a Jquery Pjax→