Provide an offline fallback page

SkillDev tools

offline-fallback is a skill that guides an AI agent through making web apps work offline using service workers. It is used when adding PWA capabilities, implementing a service worker, or improving the experience for users on unreliable network connections.

Use Provide an offline fallback page in Claude, ChatGPT or Ahel Desktop

Free. Sign in, add Provide an offline fallback page and connect your AI. About a minute.

Also: Claude Code · Cursor · Codex

Then ask your AI: use the Provide an offline fallback page skill

Details

Instructions available. Your AI can read the instructions. Execution depends on the setup they require.

Have a web app project the agent can work on.

Provide an offline fallback pageStart free

What your AI can do with it

  • Guides the agent through adding PWA capabilities to a web app
  • Walks through implementing a service worker
  • Improves the experience for users on unreliable network connections
  • Makes web apps work offline using service workers

Getting started

  1. Have a web app project the agent can work on.
  2. Add the offline-fallback skill to the agent's available skills.
  3. Ask the agent to add PWA capabilities, implement a service worker, or improve offline behavior, and it will follow the skill's guidance.

What this skill tells your AI

The instructions your AI receives, as published by thedaviddias/front-end-checklist in skills/offline-fallback/SKILL.md and read by ahel’s review.

The browser's default offline error screen ("No internet connection") is confusing and completely outside your brand. A custom offline page maintains the user experience, reinforces trust, and can surface cached content or useful actions — such as enabling users to continue reading a cached article or queuing a form submission for later.

Quick Reference

  • Create a minimal /offline HTML page that works without any network requests
  • Pre-cache the offline page during the service worker install event
  • Intercept failed navigation requests and serve the offline page instead
  • Include helpful guidance so users know what to do while offline

Check

Check whether the site shows a custom offline fallback page when the network is disconnected and a navigation request cannot be fulfilled.

Fix

Create a self-contained /offline page and configure the service worker to pre-cache it and serve it for failed navigation requests.

Explain

Explain how a service worker can intercept failed network requests and return a cached offline fallback page to the user.

Code Review

Review the service worker fetch handler and the offline page markup. Verify the offline page is pre-cached at install time, that it does not depend on external resources, and that the fallback is only served for navigation requests (not sub-resources).


For full implementation details, code examples, and framework-specific guidance, see references/rule.md.

Rule page: https://frontendchecklist.io/en/rules/performance/offline-fallback

Signals

GitHub stars
74k
Forks
7k
Last commit
Oct 2026

Questions

When should this skill be used?
Use it when adding PWA capabilities, implementing a service worker, or improving the experience for users on unreliable network connections.
What does the skill do?
It guides the agent through making web apps work offline using service workers.
Advanced
Item type
skill
Key
offline-fallback
Source
github.com/thedaviddias/front-end-checklist