FallbackJS is a tiny, zero-configuration JavaScript library that provides clean, user-friendly fallback pages for common frontend failures.
It works automatically by adding a single script tag.
No setup. No backend. No tracking.
FallbackJS handles common failure states gracefully:
- Offline / network unavailable
- Broken images
- Runtime JavaScript crashes
Each fallback is:
- Minimal
- Responsive
- Accessible
- Fully client-side
FallbackJS does not:
- Verify truth, correctness, or security
- Prevent crashes from happening
- Replace proper error handling or monitoring
- Send analytics or logs anywhere
This library is about presentation, not prevention.
Add one script tag to your main HTML file:
<script src="https://fallbackjs.netlify.app/fallback.min.js"></script>