[사전 미션 - CSR을 SSR로 재구성하기] - 리안(오혜린) 미션 제출합니다.#16
Open
ooherin wants to merge 3 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤔 생각해 보기
1. CSR과 SSR에서 초기 페이지 로딩 시간에 어떤 차이가 있었을까? 그 이유는?
CSR 은 우선 api 로 데이터가 들어오기 전에, 클라이언트 측에서 받아온 css, js로 레이아웃을 보여주고, api 로 데이터가 들어오면 영화 목록이 그제서야 채워지게 됩니다. 이때문에, 첫 페이지를 렌더링할 때 SSR 에 비해 느리고 답답한 느낌을 줍니다.
반면 SSR 은 완성된 html 을 서버에서 만들어서 불러오기 때문에, 처음부터 영화 데이터가 잘 들어가진 페이지를 볼 수 있게 됩니다. CSR 에 비해 빨리 렌더링 되는 느낌을 받았습니다. 다만 탭의 버튼을 눌러 카테고리를 전환할 때, CSR 이 SSR 보다 더 부드럽게 바뀌는 느낌이 들었습니다. 아무래도 SSR 은 데이터가 바뀌면 전체 페이지를 다시 그리고 보내주기 때문에 그런 것 같습니다.
2024-10-03.4.56.47.mov
2024-10-03.4.56.59.mov
2. 서버 측에서 데이터를 가져오는 방식과 클라이언트 측에서 데이터를 가져오는 방식을 비교해서 설명한다면?
csr
ssr
ssr 과 csr 의 가장 큰 차이점은
인 것 같습니다!