정적 콘텐츠란 앱에서 전송하는 자원 중 요청마다 바뀌지 않는 자원을 말합니다. 다음 콘텐츠
는 정적 콘텐츠라 할 수 있습니다.
| 멀티미디어 |
이미지, 비디오, 오디오 파일입니다. 물론 이미지 파일을 즉석에서 생성하는 것도 가능하지만
(비디오나 오디오도 가능하지만 드뭅니다), 멀티미디어 자원은 대부분 정적입니다.
|
CSS
|
설령 레스
LESS
, 사스
Sass
, 스타일러스
Stylus
같은 추상
CSS
언어를 쓰더라도 브라우저가 받는 건 평
범한
CSS
1
이며 이는 정적 자원입니다.
| 자바스크립트 |
서버에서 자바스크립트를 운영한다 해서 클라이언트 쪽 자바스크립트가 없으란 법은 없습니
다. 클라이언트 쪽 자바스크립트는 정적 자원으로 간주합니다. 물론 구분이 좀 모호해지기는
합니다. 예를 들어 서버와 클라이언트에서 공유하는 코드라면? 이 문제를 해결할 방법도 있긴
하지만, 일단 클라이언트에 전송되는 자바스크립트는 일반적으로 정적입니다.
1
자바스크립트를 써서 컴파일되지 않은 레스 파일을 브라우저에서 쓸 수는 있습니다. 하지만 성능이 떨어지므로 필자는 이 방법을 권하지
않습니다.
정적 콘텐츠
CHAPTER
16
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.
O’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
I 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
I’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
I'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.