@aadilabdulmoizz/spa-js
v1.0.3
Published
A lightweight JavaScript SPA router with localStorage support
Readme
Spa JS - Lightweight SPA Router
@aadilabdulmoizz/spa-js is a lightweight JavaScript library that enables single-page application (SPA) style navigation without using frameworks like React or Vue.
✅ Load HTML pages dynamically
✅ No page reload
✅ Just simple JavaScript
✨ Features
- ✅ Pure JavaScript — zero dependencies
- ✅ Dynamically loads HTML pages using
fetch() - ✅ Preserves page state using
localStorage - ✅ Lightweight and easy to integrate
- ✅ Perfect for portfolios, landing pages, and static projects
📦 Installation
🔹 Option 1: CDN
Use directly in your HTML file:
<script src="https://cdn.jsdelivr.net/npm/@aadilabdulmoizz/[email protected]/dist/index.min.js"></script>