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

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

by 한민주, 양찬석, 탈 아터
April 2019
Beginner to intermediate
368 pages
7h 18m
Korean
Hanbit Media, Inc.
Content preview from 만들면서 배우는 프로그레시브 웹 앱: 사용자 경험을 극대화하는 차세대 웹 앱 기술
078 - 프로그레시브 웹 앱
4.2
서비스 워커의 수명과 waitUntil의 중요성
서비스 워커가 성공적으로 설치되고 활성화되었다면 어떻게 될까요? 서비스 워커
가 브라우저 탭이나 윈도우 창에 직접 묶여있지 않고 언제든 이벤트에 응답할 수
있기 때문에, 서비스 워커가 늘 돌고 있다는 뜻이 될까요?
아닙니다. 브라우저가 현재 등록된 서비스 워커를 항상 실행 상태로 유지하는 것
은 아닙니다. 만약 그렇다면, 사이트가 서비스 워커를 많이 등록할수록 실행되고
있는 서비스 워커 또한 늘어나면서 성능이 급격히 떨어질 것입니다.
서비스 워커의 수명은 서비스 워커가 처리하는 이벤트와 직접적으로 연관되어 있
습니다. 서비스 워커 범위 내에서 이벤트가 발생한다면, 서비스 워커는 활성화되
고 이벤트를 처리한 후 종료됩니다.
다시 말해 사용자가 사이트를 방문할 때, 서비스 워커가 시작되고, 페이지에서 이
벤트 처리를 완료하는 즉시 종료될 것입니다. 다른 이벤트가 나중에 들어온다면,
서비스 워커는 다시 시작되고 완료되는 즉시 종료될 것입니다.
만약 서비스 워커의 이벤트 핸들링 코드가 비동기적으로 호출되도록 설정되어 있
다면 어떻게 될까요? 그 예로
push
이벤트 핸들러에 대해 살펴봅시다.
push
이벤
트는
10
장에서 좀 더 자세히 살펴보겠지만, 지금은 서버가 사용자에게 푸시 메시
지를 ...
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