Skip to content

⚡ Bolt: LCP 이미지 및 above-the-fold SVG의 decoding=async 속성 제거 - #108

Closed
seonghobae wants to merge 1 commit into
mainfrom
bolt-lcp-svg-optimization-11943077872913160647
Closed

⚡ Bolt: LCP 이미지 및 above-the-fold SVG의 decoding=async 속성 제거#108
seonghobae wants to merge 1 commit into
mainfrom
bolt-lcp-svg-optimization-11943077872913160647

Conversation

@seonghobae

@seonghobae seonghobae commented Jul 26, 2026

Copy link
Copy Markdown
Contributor

💡 What

index.html의 주요 above-the-fold 이미지(헤더 로고와 영웅 섹션 일러스트레이션)에서 decoding="async" 속성을 제거하고, 의도를 명확히 하는 주석을 추가했습니다. 또한, 테스트 코드를 수정하여 lazy 로드되는 이미지에만 async 디코딩이 적용되도록 변경했습니다.

🎯 Why

decoding="async" 속성은 이미지 디코딩 작업이 메인 스레드를 블로킹하는 것을 방지하지만, 초기 렌더링에 핵심적인 역할을 하는 LCP(Largest Contentful Paint) 이미지나 above-the-fold 영역의 주요 이미지에 사용될 경우 오히려 중요한 콘텐츠 렌더링을 지연시킬 수 있습니다.

📊 Impact

핵심 SVG 이미지의 렌더링 지연을 제거함으로써 초기 로딩 속도와 LCP 지표가 향상됩니다.

🔬 Measurement

전체 테스트 스위트가 에러 없이 성공적으로 수행되며(tests/test_styles.py 테스트 케이스 포함), 변경사항은 CHANGELOG.md.jules/bolt.md를 통해 명확히 문서화되었습니다.


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

Summary by CodeRabbit

  • 성능 개선

    • 초기 화면의 주요 SVG 이미지 렌더링 지연을 줄여 LCP 성능을 개선했습니다.
    • 지연 로딩 이미지에는 비동기 디코딩을 유지하고, 즉시 표시되는 이미지에는 적용하지 않도록 최적화했습니다.
  • 문서

    • 관련 성능 최적화 내용과 변경 사항을 릴리스 기록에 추가했습니다.

Copilot AI review requested due to automatic review settings July 26, 2026 13:51
@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.

@coderabbitai

coderabbitai Bot commented Jul 26, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 5146109d-18b7-4030-a1bc-4a200be68081

📥 Commits

Reviewing files that changed from the base of the PR and between d06c1cb and f771241.

📒 Files selected for processing (4)
  • .jules/bolt.md
  • CHANGELOG.md
  • index.html
  • tests/test_styles.py

📝 Walkthrough

Walkthrough

초기 노출 영역의 두 SVG 이미지에서 decoding="async"를 제거하고, lazy 이미지에만 비동기 디코딩을 요구하도록 테스트를 수정했습니다. 관련 작업 기록과 변경 로그도 갱신했습니다.

Changes

SVG 디코딩 최적화

Layer / File(s) Summary
SVG 이미지 디코딩 및 검증
index.html, tests/test_styles.py
헤더 아바타와 히어로 SVG에서 decoding="async"를 제거하고, 이미지의 loading 값에 따라 디코딩 속성 검증을 분기합니다.
변경 기록 갱신
.jules/bolt.md, CHANGELOG.md
SVG 디코딩 속성 제거 내용을 작업 기록과 [Unreleased] 변경 로그에 추가합니다.

Estimated code review effort: 2 (Simple) | ~10 minutes

Suggested reviewers: copilot

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed PR 제목이 LCP 이미지와 above-the-fold SVG의 decoding=async 제거라는 핵심 변경을 정확히 요약합니다.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch bolt-lcp-svg-optimization-11943077872913160647

Comment @coderabbitai help to get the list of available commands.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

LCP/초기 렌더링에 중요한 above-the-fold SVG 이미지에서 decoding="async"를 제거해 초기 렌더링 지연 가능성을 낮추는 성능 최적화 PR입니다. 정적 GitHub Pages 사이트의 index.html 렌더링 경로(헤더/히어로)를 더 빠르게 만드는 변경이며, 회귀 방지를 위해 테스트와 문서를 함께 정리했습니다.

Changes:

  • index.html의 헤더 로고 SVG와 히어로 일러스트 SVG에서 decoding="async" 제거 및 의도 주석 추가
  • 테스트를 “lazy 로드 이미지에만 decoding="async" 적용” 규칙으로 업데이트
  • 변경사항을 CHANGELOG.md.jules/bolt.md에 문서화

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
index.html above-the-fold 핵심 SVG에서 decoding="async" 제거(주석 포함)로 LCP/초기 렌더링 경로 최적화
tests/test_styles.py lazy 이미지에만 async decoding을 요구하고, critical(비-lazy) 이미지는 금지하도록 회귀 테스트 강화
CHANGELOG.md Unreleased에 성능 최적화 항목 추가
.jules/bolt.md decoding="async" 관련 학습/액션 항목 추가로 성능 규칙 문서화

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown
Contributor Author

Closing as a superseded duplicate of #141. The canonical PR implements the same eager/LCP image-hint change on the current base, adds non-vacuous eager/lazy/LCP contracts, and documents the HTML-standard semantics and measurement limits without claiming a guaranteed LCP improvement.

@seonghobae seonghobae closed this Aug 6, 2026
@google-labs-jules

Copy link
Copy Markdown

Closing as a superseded duplicate of #141. The canonical PR implements the same eager/LCP image-hint change on the current base, adds non-vacuous eager/lazy/LCP contracts, and documents the HTML-standard semantics and measurement limits without claiming a guaranteed LCP improvement.

Understood. Acknowledging that this PR is a superseded duplicate and this work is now obsolete. I have discarded my local changes and will stop work on this task.

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.

2 participants