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

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

by 한민주, 양찬석, 탈 아터
April 2019
Beginner to intermediate
368 pages
7h 18m
Korean
Hanbit Media, Inc.
Content preview from 만들면서 배우는 프로그레시브 웹 앱: 사용자 경험을 극대화하는 차세대 웹 앱 기술
074 - 프로그레시브 웹 앱
페이지를 다시 새로고침하세요. 화면은 그림
4
-
2
와 같아야 합니다.
그림
4
-
2
서비스 워커가 활성화되어 있고 페이지를 제어하고 있습니다.
여기서 무슨 일이 일어났을까요? 그림
4
-
1
에서 명확하게 볼 수 있듯이, 서비스 워
커는 첫 번째 새로고침 후에 성공적으로 설치되고 활성화되었지만,
fetch
이벤트
는 없었기에 스타일 시트는 변화없이 그대로였습니다. 서비스 워커가
fetch
이벤
트를 받기 위해 새로고침을 한 번 더 해야했던 이유는 무엇일까요?
이를 이해하려면 ‘서비스 워커의 생명주기’를 이해해야 합니다.
4.1
서비스 워커의 생명주기
페이지가 새로운 서비스 워커를 등록하려면 여러 단계의 상태를 거쳐야 합니다
(
그
림
4
-
3)
.
그림
4
-
3
서비스 워커의 생명주기
활성화됨활성화 중
설치됨/
대기 중
설치 중 중복
4
서비스 워커 생명주기와 캐시 관리
- 075
설치 중
(Installing
)
navigator
.
serviceWorker
.
register
를 사용하여 새로운 서비스 워커를
등록할 때, 자바스크립트가 다운로드되고 파싱되고 나면, 서비스 워커는
설치
중
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