Skip to Content
한 권으로 끝내는 Node & Express: 웹사이트 구축을 위한 서버 사이드 자바스크립트
book

한 권으로 끝내는 Node & Express: 웹사이트 구축을 위한 서버 사이드 자바스크립트

by 한성용, 이선 브라운
April 2016
Beginner to intermediate
389 pages
9h 8m
Korean
Hanbit Media, Inc.
Content preview from 한 권으로 끝내는 Node & Express: 웹사이트 구축을 위한 서버 사이드 자바스크립트
308
한 권으로 끝내는 Node & Express
다면 반드시 핀터레스트를 지원하고 싶을 겁니다. 실소할 수도 있겠지만, 필자는 마이스페이스
MySpace
도 분명 다시 부활할 거라 믿습니다. 마이스페이스는 사이트를 재설계하는 중인데, 노드
를 사용해 만들고 있다니 흥미롭습니다.
19.1.1.
소셜 미디어 플러그인과 사이트 성능
소셜 미디어 통합은 대부분 프론트엔드 쪽 작업입니다. 페이지에 있는 자바스크립트가 들어오
는 콘텐츠(예를 들어 페이스북에 뜬 인기 글 세 개)와 나가는 콘텐츠(예를 들어 현재 페이지
를 트윗)를 모두 처리합니다. 이 방법이 소셜 미디어를 통합하는 가장 쉬운 방법이기는 하지만
대가가 있습니다. 필자는
HTTP
요청이 늘어나면서 로딩 시간이 두 배, 세 배로 늘어나는 페이
지를 여러 번 봤습니다. 페이지 성능이 중요하다면(특히 모바일 사용자에게 중요합니다) 소셜
미디어를 어떻게 통합할지 주의 깊게 생각해야 합니다.
그렇긴 하지만, ‘좋아요’ 버튼이나 ‘트윗’ 버튼 구현에 필요한 코드는 브라우저 쿠키를 보내야만
동작합니다. 이 기능을 서버 쪽으로 옮기기란 대단히 어렵고 불가능할 때도 있습니다. 따라서
이 기능이 필요하다면 적절한 타사 라이브러리를 링크하는 게 가장 좋은 옵션이며 페이지 성능
에 영향이 있더라도 감수해야 합니다. 그나마 다행인 것은 페이스북과 트위터
API
는 아주 널리
쓰이므로 브라우저가 이미 이 라이브러리를 캐시하고 있을 가능성이 높고, 따라서 성능에 미치
는 영향은 그리 크지 않을 거라는 점입니다.
19 ...
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

한 권으로 끝내는 Node & Express(2판): 모던 웹을 위한 서버 사이드 자바스크립트의 모든 것

한 권으로 끝내는 Node & Express(2판): 모던 웹을 위한 서버 사이드 자바스크립트의 모든 것

한선용, 이선 브라운

Publisher Resources

ISBN: 9788968482229