µJS: Lightweight AJAX Navigation Library for Instant Page Transitions
By
amaury_bouchard
Sketches a bagel but doesn't bake it through.
Summary
µJS is a lightweight JavaScript library that enables AJAX navigation for traditional websites without requiring a full framework. It intercepts link clicks and form submissions, fetches new pages in the background, and updates only the changed content, creating an instant navigation experience similar to single-page applications. The library is only 5KB gzipped, has zero dependencies, requires no build step or server-side changes, and works with any backend technology like PHP, Python, Ruby, or Go.
Key quotes
· 5 pulledµJS changes that: it intercepts link clicks and form submissions, fetches the new page in the background, and replaces only the content that changed.
The browser never fully reloads — navigation feels instant, like a single-page application.
There's no framework to learn, no build step, no server-side changes.
Add a single script tag to your existing site, call mu.init(), and every internal link becomes an AJAX navigation.
It works with any backend — PHP, Python, Ruby, Go, or anything that serves HTML.
You might also wanna read
VMPrint: Pure JavaScript Library for Multi-Page Document Rendering and PDF/SVG Export
VMPrint is a pure JavaScript library for rendering multi-page documents that can be previewed on canvas and exported to PDF/SVG from the sam
htmx: Lightweight JavaScript Library for Modern HTML Development
htmx is a lightweight JavaScript library that enables developers to access modern web technologies like AJAX, CSS Transitions, WebSockets, a
HMPL.js: Lightweight JavaScript Template Language for Server-Driven Web Development
HMPL.js is a lightweight JavaScript template language designed for server-driven web development. It features block-based syntax, customizab
SVG.js: Lightweight JavaScript Library for SVG Manipulation and Animation
SVG.js is a lightweight JavaScript library for manipulating and animating SVG graphics. It has no dependencies and aims to be as small as po
htmx 4 Released: Library Rebuilt with Modern fetch() API for Better Performance
The article announces htmx 4, a major update to the htmx JavaScript library that replaces its XMLHttpRequest-based implementation with the m
Lit: A Lightweight JavaScript Library for Simplified Web Components Development
Lit is a lightweight JavaScript library that builds on Web Components standards to simplify web development. It provides reactivity, declara
