본문으로 건너뛰기
Skillpedia
웹사이트 및 UI (프런트엔드)75k · #2957

offline-fallback

하는 일

이 스킬은 페이지를 불러올 수 없을 때 보여 줄 간단한 오프라인 페이지와 서비스 워커를 설정합니다. 불안정한 네트워크에서 쓰이는 PWA나 사이트를 만드는 개발자를 위한 것입니다.

사용하는 경우

  • ✓웹사이트나 프로그레시브 웹 앱에 오프라인 지원을 추가해 달라고 요청할 때.
  • ✓불안정한 연결의 방문자가 브라우저 기본 오류 페이지를 보고 있어서 자체 대체 화면을 원할 때.
  • ✓서비스 워커를 설정하면서 실패한 페이지 요청을 부드럽게 처리하고 싶을 때.

스킬 링크

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/offline-fallback/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/offline-fallback/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“제 사이트에 맞춤 오프라인 페이지를 추가해서 인터넷이 나쁜 방문자도 유용한 내용을 볼 수 있게 해 주실 수 있나요?”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 네트워크 요청에 의존하지 않는 독립적인 오프라인 페이지를 만듭니다. 서비스 워커가 설치 중에 그 페이지를 저장하고, 페이지 이동이 실패하면 보여 주도록 설정합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Provide an offline fallback page

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/rules/performance/offline-fallback

자주 묻는 질문

오프라인 페이지는 왜 혼자서 작동해야 하나요?

스킬은 오프라인에서 실패하는 것이 바로 네트워크 요청이므로, 이 페이지는 네트워크에 의존하면 안 된다고 설명합니다.

오프라인 페이지는 이미지와 스크립트에도 적용되나요?

아닙니다. 스킬은 대체 페이지는 하위 리소스가 아니라 페이지 이동 요청에만 제공해야 한다고 설명합니다.

캐시된 콘텐츠를 보여 줄 수 있나요?

네. 스킬은 캐시된 콘텐츠를 보여 주거나, 폼을 나중에 보내도록 대기시키는 것 같은 유용한 동작을 언급합니다.

상세 정보

작성자의 원본 설명

Use when adding PWA capabilities, implementing a service worker, or improving the experience for users on unreliable network connections.

repo: thedaviddias/Front-End-Checklist

인기도

GitHub 스타
75k
순위
#2957
라이선스
MIT
업데이트
2026. 10. 31.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬