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

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

by 한민주, 양찬석, 탈 아터
April 2019
Beginner to intermediate
368 pages
7h 18m
Korean
Hanbit Media, Inc.
Content preview from 만들면서 배우는 프로그레시브 웹 앱: 사용자 경험을 극대화하는 차세대 웹 앱 기술
038 - 프로그레시브 웹 앱
불행히도 많은 사용자가 겪는 오늘날의 웹은 그림
2
-
3
과 같습니다. 다행인 것은
서비스 워커를 통해 이러한 웹에 뭔가를 할 수 있게 되었다는 것입니다.
오프라인 상태 시뮬레이션하기
샘플 앱을 작업하다 보면 오프라인 상태를 시뮬레이션해야 할 때가 많습니다. 오프라
인 상태는 사용자가 서버에 연결할 수 없는 상태입니다. 오프라인 상태를 시뮬레이션
하는 한 가지 방법은 개발 서버를 중단하는 것입니다.
로컬 서버가 작동하는 명령 창에
Ctrl
+
C
키를 눌러 서버를 종료합니다. 브라우저에서
페이지를 다시 불러오면, 사용자가 오프라인 상태에서 해당 페이지를 불러올 때와 동
일한 환경이 됩니다.
다시 온라인 상태로 돌아가려면
npm
start
명령을 다시 실행하면 됩니다.
이 방법은 개발 과정에서 오프라인 상태를 시뮬레이션하는 데 효과적입니다. 그러나
일단 코드를 운영 중인 서비스로 배포하고 나면 무언가를 테스트할 때마다 서버를 내
려 서비스를 중단할 수는 없습니다. 다행히도, 대부분의 최신 브라우저에는 오프라인
상태는 물론 서로 다른 연결 속도
(
그림
2
-
4
)
를 시뮬레이션할 수 있는 도구가 포함되어
있습니다. 자세한 내용은
4
.
8
페이지의 ‘개발자 도구’를 참조하세요.
그림
2
-
4
구글 크롬 브라우저에서 오프라인 상태를 시뮬레이션하는 모습
2.5 ...
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