Skip to content

Tiny, zero-configuration JavaScript library that adds beautiful fallback pages for common frontend errors. Automatically handles offline, broken images, and JS errors.

License

Notifications You must be signed in to change notification settings

dheeraz101/FallbackJS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FallbackJS

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.


What it does

FallbackJS handles common failure states gracefully:

  • Offline / network unavailable
  • Broken images
  • Runtime JavaScript crashes

Each fallback is:

  • Minimal
  • Responsive
  • Accessible
  • Fully client-side

What it does NOT do

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.


Installation

Add one script tag to your main HTML file:

<script src="https://fallbackjs.netlify.app/fallback.min.js"></script>

Buy Me A Coffee

About

Tiny, zero-configuration JavaScript library that adds beautiful fallback pages for common frontend errors. Automatically handles offline, broken images, and JS errors.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published