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. image > image
      image

๋งํฌ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

      image ๊ด€๋ จ ๋ฌธ์„œ

    • ์—˜๋ฆฌ๋จผํŠธ๊ฐ€ ๋“ฑ์žฅํ•œ ์‹œ์ ๋ถ€ํ„ฐ, ํ…์ŠคํŠธ ๋˜๋Š” ์ด๋ฏธ์ง€๊ฐ€ ์™„์ „ํžˆ ๋กœ๋”ฉ๋˜๋Š” ์‹œ์ 