Small jQuery-based library that adds AJAX behavior through HTML attributes instead of large custom JavaScript.
Overview
Intercooler.js is a compact front-end library that lets web pages trigger AJAX updates using HTML attributes, similar in spirit to plain anchor navigation. It targets applications that already use jQuery or Zepto and want incremental dynamic behavior without rewriting the whole client stack.
Despite the attribute-driven API, it supports choosing UI events that fire requests, progress indicators, custom HTTP response headers for client redirect, a REST-style dependency mechanism, basic history and back-button behavior, and a rich event model. The authors describe it as suitable for retrofitting AJAX into existing server-rendered apps.
Intercooler works with any back-end and can sit beside other JavaScript frameworks. New projects are directed to htmx 1.x, the successor formerly called intercooler 2.0, which drops the jQuery dependency; intercooler.js remains supported for existing deployments.
Installation is via download, Bower, or hot-linked scripts from the project site. It requires jQuery 1.10.0 or newer. Full guides and references live on the intercooler website.
Key features
- AJAX via HTML attributes
- Configurable trigger events
- Progress indicator helpers
- REST dependency mechanism
- History and back-button support
- Custom response header handling
- Incremental adoption in legacy apps
- jQuery or Zepto dependency
Use cases
- Add partial page updates
- Modernize server-rendered forms
- Prototype dynamic UI without SPA
- Extend jQuery-based admin panels