All Topics
All Topics
Technology
Technology
Design
Design
Programming
Programming
Science
Science
News
News
Gaming
Gaming
Entertainment
Entertainment
Business
Business
Finance
Finance
Sports
Sports
Health
Health
Food
Food
Travel
Travel
Art
Art
Music
Music
Books
Books
Education
Education
Politics
Politics
Personal
Personal
No algorithm. No AI slop. No ads. Just RSS. Pro-human. Indie writers. Real journalism. Open web. Chronological. Hand toasted.

µJS: Lightweight AJAX Navigation Library for Instant Page Transitions

By

amaury_bouchard

2mo ago· 2 min readen

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.
Snippet from the RSS feed
Accelerate your website without a JS framework. Lightweight AJAX navigation library — 5KB gzipped, zero dependencies, drop-in compatible.

You might also wanna read