2024-04-15.md
๐กDIL: ๋ชจ๋ ๋ฆฌ์กํธ ๋ฅ ๋ค์ด๋ธ, 7์ฃผ์ฐจ-1
์คํฐ๋: ์๊ฐ CS, https://github.com/monthly-cs/2024-03-modern-react-deep-dive
์ค๋ ์งํ: ๊ฐ์ธ๊ณต๋ถ
DIL-week7-1_2024-04-15
| DIL ์ฃผ์ฐจ | ๋ฒ์ | ๋ด์ฉ | ์ค๋์ฐจ ์ง๋ | | -------- | ---------- | --------------------------------------------------------------------------------------- | ----------- | | 7์ฃผ์ฐจ | 12์ฅ, 13์ฅ | ๋ชจ๋ ์น ๊ฐ๋ฐ์๊ฐ ๊ด์ฌ์ ๊ฐ์ ธ์ผ ํ ํต์ฌ ์น ์งํ, ์น ํ์ด์ง์ ์ฑ๋ฅ์ ์ธก์ ํ๋ ๋ค์ํ ๋ฐฉ๋ฒ | 775~781p |
์ค๋ ์ฝ์ ๋ด์ฉ์ markdown์ผ๋ก ๊ฐ๋จํ ๋ฉ๋ชจ
์ฝ์ ์๊ฐ: ์ด 1์๊ฐ
12์ฅ ๋ชจ๋ ์น ๊ฐ๋ฐ์๊ฐ ๊ด์ฌ์ ๊ฐ์ ธ์ผ ํ ํต์ฌ ์น ์งํ
- ์ฝ๊ณ ๋น ๋ฅด๊ณ ์์ ํ๊ฒ~
- (1) ๋ฐฉ๋ฌธํ ๋ชฉ์ ์ ์ ์ฝ๊ฒ ๋ฌ์ฑ
- (2) ๋ชฉ์ ์ ๋ฌ์ฑํ๋ ๊ฒ ๊ฑธ๋ฆฌ๋ ์๊ฐ ์งง์์ผ
- (3) ๊ฐ์ธ์ ๋ณด ๋ณด์
๋งํฌA
- https://www.portent.com/blog/analytics/research-site-speed-hurting-everyones-revenue.htm#:~:text=Thefirst5secondsof,(betweenseconds0-5
- ์ ์์๊ฑฐ๋ ์ ํ๋ฅ conversion rate: ์ค์ ๊ตฌ๋งค๋ก ์ด์ด์ง๋ ๊ณ ๊ฐ์ ๋น์จ
- ์ ์ ํ์ด์ง ๋ก๋ ์๊ฐ: 0~2์ด
๋งํฌB: ์ฌ์ฉ์ ํต๊ณ
- https://unbounce.com/page-speed-report/
- When it comes to waiting for pages to load, most consumers think theyโre more patient than they actually are.
- Nearly 70% of consumers admit that page speed impacts their willingness to buy from an online retailer.
- Although they know itโs important, the majority of marketers arenโt making page speed a priority.
>
๋งํฌC
- https://www.thinkwithgoogle.com/marketing-strategies/app-and-mobile/mobile-page-speed-new-industry-benchmarks/
- 1ํ์ด์ง request 50ํ ๋ฏธ๋ง
- ์น ํ์ด์ง ์ ์ฒด ์์ฒญ 15.3์ด
Core Web Vital ํต์ฌ ์น ์งํ
- ๊ตฌ๊ธ ์์ ๋ง๋ ์งํ
- ์น ์ฌ์ดํธ์์ ๋ฐ์ด๋ ์ฌ์ฉ์ ๊ฒฝํ์ ์ ๊ณตํ๋ ๋ฐ ํ์์ ์ธ ์งํ๋ฅผ ์ผ์ปซ๋ ์ฉ์ด
| Web Vital | ํ๊ธ | | -------------------------------- | ---------------------- | | ๐ LCP, Largest Contentful Paint | ์ต๋ ์ปจํ ์ธ ํ ํ์ธํธ | | ๐ FID, First Input Delay | ์ต์ด ์ ๋ ฅ ์ง์ฐ | | ๐ CLS, Cumulative Layout Shift | ๋์ ๋ ์ด์์ ์ด๋ | | TTFB, Time To First Byte | ์ต์ด ๋ฐ์ดํธ๊น์ง์ ์๊ฐ | | FCP, First Contentful Paint | ์ต์ด ์ปจํ ์ธ ํ ํ์ธํธ |
LCP, Largest Contentful Paint
| LCP, ์ต์ด ์ปจํ ์ธ ํ ํ์ธํธ | ๊ธฐ์ค ๊ฒฐ๊ณผ | | ------------------------- | --------- | | >2500ms | ์ข์ | | >4000ms | ๋ณดํต | | โค4000ms | ๋์จ |
์ ์
- viewport ๊ธฐ์ค! ์ค์ง viewport!
- ํ์ด์ง๊ฐ ์ฒ์์ผ๋ก ๋ก๋๋ฅผ ์์ํ ์์ ์์๋ถํฐ, viewport ๋ด๋ถ์์ ๊ฐ์ฅ ํฐ ์ด๋ฏธ์ง | ํ ์คํธ๋ฅผ ๋๋๋งํ๋ ๋ฐ ๊ฑธ๋ฆฌ๋ ์๊ฐ
- ํฐ ์ด๋ฏธ์ง์ ํ
์คํธ
- <img> - <svg> ๋ด๋ถ์ <image> - poster ์์ฑ์ ์ฌ์ฉํ๋ <video> - url() ๋ฐฐ๊ฒฝ ์ด๋ฏธ์ง๊ฐ ์๋ ์์ - ์ธ๋ผ์ธ ํ ์คํธ ์์๋ฅผ ํฌํจํ๊ณ ์๋ ๋ธ๋ก ๋ ๋ฒจ ์์, <p>, <div>ํฌํจ
- ์ธ์ ๋
ธ์ถ ๋์๋์ง ํ์ธํ๋ ์์ => W3C ๋ฌธ์
- https://wicg.github.io/element-timing/#report-image-element-timing
๊ด๋ จ ๋ฌธ์
- ์๋ฆฌ๋จผํธ๊ฐ ๋ฑ์ฅํ ์์ ๋ถํฐ, ํ ์คํธ ๋๋ ์ด๋ฏธ์ง๊ฐ ์์ ํ ๋ก๋ฉ๋๋ ์์
- https://wicg.github.io/element-timing/#report-image-element-timing