Skip to Content
만들면서 배우는 프로그레시브 웹 앱: 사용자 경험을 극대화하는 차세대 웹 앱 기술
book

만들면서 배우는 프로그레시브 웹 앱: 사용자 경험을 극대화하는 차세대 웹 앱 기술

by 한민주, 양찬석, 탈 아터
April 2019
Beginner to intermediate
368 pages
7h 18m
Korean
Hanbit Media, Inc.
Content preview from 만들면서 배우는 프로그레시브 웹 앱: 사용자 경험을 극대화하는 차세대 웹 앱 기술
058 - 프로그레시브 웹 앱
그림
3
-
2
서비스 워커 생명주기
활성화됨설치중 활성화 중
지금까지는 서비스 워커가
fetch
이벤트
(
활성화된 서비스 워커
에 의해서만 잡히는 이벤
트
)
를 받는 데 사용됐습니다. 여기서는 그 이전에 발생하는 이벤트를 수신하고, 서
비스 워커가 오프라인 환경해서 사용할 파일을 캐싱하는데 사용해 보겠습니다.
서비스 워커의
install
이벤트는 서비스 워커가 가장 처음 등록된 직후, 그리고
이벤트가 활성화되기 전에 단 한 번만 발생하는 이벤트입니다. 서비스 워커가 페
이지를 제어하고
fetch
이벤트 수신을 시작하기 전에, 오프라인화 가능한 모든
파일을 캐싱할 기회를 얻을 수 있습니다.
Install
이벤트 내에서 서비스 워커 설치 자체를 취소할 수도 있습니다. 이후 사
용자가 사이트에 재방문하면 서비스 워커 설치가 다시 시작됩니다. 이를 활용하면
서비스 워커의 의존성을 효과적으로 관리할 수 있습니다.
Install
이벤트 내에서
서비스 워커가 정상적으로 작동하는데 필요한 파일을 미리 내려받거나 캐시에 저
장할 수 있으며, 이 과정에서 문제가 발생하면 설치 자체를 취소할 수도 있습니다.
3.3
CacheStorage에 요청 저장하기
이제 코딩을 시작해 봅시다.
2
장에서 모든 단계를 완료하지 않았거나, 작업하고
있는 코드가 이 장의 시작
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

파이썬으로 웹 크롤러 만들기: 초간단 나만의 웹 크롤러로 원하는 데이터 가져오는 방법

파이썬으로 웹 크롤러 만들기: 초간단 나만의 웹 크롤러로 원하는 데이터 가져오는 방법

한선용, 라이언 미첼

Publisher Resources

ISBN: 9791162248737