Skip to content

⚡ Bolt: 이미지 디코딩 최적화로 렌더링 블로킹 방지#59

Open
seonghobae wants to merge 2 commits into
mainfrom
bolt/image-decoding-async-16093582396275708342
Open

⚡ Bolt: 이미지 디코딩 최적화로 렌더링 블로킹 방지#59
seonghobae wants to merge 2 commits into
mainfrom
bolt/image-decoding-async-16093582396275708342

Conversation

@seonghobae

Copy link
Copy Markdown
Contributor

💡 What

모든 <img> 태그에 decoding="async" 속성을 추가했습니다.

🎯 Why

브라우저가 이미지를 파싱하고 디코딩하는 작업은 기본적으로 메인 스레드에서 동기적으로 처리됩니다. 이로 인해 용량이 큰 이미지(특히 LCP에 영향을 주는 이미지나 lazy loading되지 않는 이미지)가 렌더링될 때 다른 렌더링 작업이나 중요한 스크립트 실행이 차단(Blocking)되는 성능 저하 현상이 발생할 수 있습니다.

📊 Impact

  • 메인 스레드 블로킹 타임(TBT: Total Blocking Time) 및 INP(Interaction to Next Paint) 감소
  • 메인 스레드에서 이미지 디코딩을 백그라운드로 분리함으로써 초기 렌더링 체감 속도 향상

🔬 Measurement

브라우저 개발자 도구의 Performance 탭에서 새로고침 프로파일링을 진행하면, 기존 Main Thread에서 발생하던 Image Decode 작업 덩어리가 분리되어 병렬 처리되거나 차단 시간이 줄어든 것을 확인할 수 있습니다.


PR created automatically by Jules for task 16093582396275708342 started by @seonghobae

Adds decoding="async" attribute to all img tags to prevent image decoding from blocking the main thread.
@google-labs-jules

Copy link
Copy Markdown

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

Adds decoding="async" attribute to all img tags to prevent image decoding from blocking the main thread.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant