Skip to content

perf(images): 优化响应式图片加载并保留现有视觉 - #40

Draft
lora-sys wants to merge 5 commits into
mainfrom
perf/image-loading-20260910
Draft

lora-sys wants to merge 5 commits into
mainfrom
perf/image-loading-20260910

Conversation

@lora-sys

Copy link
Copy Markdown
Owner

范围

只优化图片传输,不采用已关闭的 #38 改版,不覆盖未合并的 #39 项目更新。以 main 601e50b 为基线,不合并、不自动合并、不部署。

原插画与封面文件不变。LoraVisual 和 ProjectMedia 使用构建期 AVIF 与 WebP 回退,懒加载图片使用实际排版宽度选择资源,并保留显式 sizes 回退。修正首页角色层的尺寸声明和候选尺寸,减少装饰图片的高优先级竞争。页面内容、布局、色彩和微交互不改。

先测后改

修改前已经用 Chromium 测试当前生产构建与已发布页面,使用冷缓存、1.6 Mbps 下行、150 ms 延迟和四倍 CPU 限速,保存请求、实际图片尺寸、LCP 与截图。

正在进行相同 runner、相同脚本的三轮前后交替测试,以及原有回归、语言与可访问性检查。尚未完成的检查不写成通过。最终补齐数值与截图证据。

截图与报告在仓库外保存,不提交字体、浏览器资源副本或生产依赖。此 PR 不声称已经卸载第三方 GitHub App。

@ecc-tools

ecc-tools Bot commented Sep 10, 2026

Copy link
Copy Markdown

ECC Tools / Security Evidence

Commit: a9a915cd61593a96e9581be0faccb8730dc339a7

Security evidence gate passed (success)

No security-sensitive scanner-evidence gap detected.

Mode: enforce

Scanned 5 changed file(s). No missing scanner-evidence signal was detected.

Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission.

@ecc-tools

ecc-tools Bot commented Sep 10, 2026

Copy link
Copy Markdown

ECC Tools / PR Risk Taxonomy

Commit: a9a915cd61593a96e9581be0faccb8730dc339a7

PR taxonomy review recommended (neutral)

Detected 2 PR taxonomy bucket(s): Security Evidence, CI/CD Recommendation.

Scanned 5 changed file(s).

Roadmap taxonomy buckets:

Security Evidence

Security-sensitive changes should carry explicit scanner, code-scanning, or focused regression evidence.

Signals:

  • 1 security-sensitive path(s) changed

Paths:

  • .github/workflows/verify-images.yml

CI/CD Recommendation

CI, dependency, coverage, and contract signals should be routed into follow-up checks or verification work.

Signals:

  • User-facing UI changes may ship without browser coverage
  • CI workflow changes may ship without failure-mode evidence
  • Dependency or CI drift could surface after merge
  • 1 CI or workflow path(s) changed

Paths:

  • .github/workflows/verify-images.yml
  • scripts/test-image-delivery.mjs
  • src/components/lora/LoraVisual.astro
  • src/components/projects/ProjectMedia.astro
  • src/data/lora-visual.ts

Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission.

@ecc-tools

ecc-tools Bot commented Sep 10, 2026

Copy link
Copy Markdown

ECC Tools / Reference Set Readiness

Commit: a9a915cd61593a96e9581be0faccb8730dc339a7

Reference set readiness gaps detected (neutral)

Reference evidence present for 0/7 areas (0%) across 5 changed file(s).

This check is based on files changed in this PR. Repository-level readiness is still reported by /ecc-tools analyze comments and generated manifests.

Area Status Evidence / Next Step
Deep analyzer corpus Missing Add analyzer fixture, golden, benchmark, or reference-set files that can catch analyzer regressions.
RAG/evaluator comparison Missing Add retrieval or evaluator reference-set comparison fixtures with expected ranking behavior.
PR salvage/review corpus Missing Add stale-PR, review-thread, reopen-flow, or salvage reference cases for queue cleanup automation.
Discussion triage corpus Missing Add public discussion triage fixtures, golden cases, or reference sets for informational, answered, and no-response classifications.
Harness compatibility Missing Add cross-harness, adapter-compliance, or harness-audit evidence for Claude, Codex, OpenCode, Zed, dmux, and agent surfaces.
Security evidence Missing Attach security evidence such as SBOMs, SARIF, audit reports, or AgentShield evidence packs.
CI failure-mode evidence Missing Add captured CI failure logs, dry-run fixtures, or troubleshooting docs for common workflow failure modes.

Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission.

@coderabbitai

coderabbitai Bot commented Sep 10, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

@ecc-tools

ecc-tools Bot commented Sep 10, 2026

Copy link
Copy Markdown

ECC Tools / Hosted Promotion Readiness

Commit: a9a915cd61593a96e9581be0faccb8730dc339a7

Hosted promotion readiness passed (success)

No hosted promotion evidence gaps detected across 5 changed file(s); 0 corpus scenarios had matching evidence.

This check compares PR file changes against the evaluator/RAG promotion corpus in src/analyzers/fixtures/evaluator-rag-corpus.ts.
Hosted output scoring inspected 0 completed cached hosted job results.

No evaluator corpus scenarios matched this PR.

Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission.

@ecc-tools

ecc-tools Bot commented Sep 10, 2026

Copy link
Copy Markdown

ECC Tools / PR Config Audit

Commit: a9a915cd61593a96e9581be0faccb8730dc339a7

No changed-config issues detected (success)

Scanned 1 config file(s) present at this commit across 1 changed config path(s) and found no issues in the supported security rules.

Changed config files:

  • .github/workflows/verify-images.yml

Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission.

@ecc-tools

ecc-tools Bot commented Sep 10, 2026

Copy link
Copy Markdown

ECC Tools / PR Harness Audit

Commit: a9a915cd61593a96e9581be0faccb8730dc339a7

No harness issues detected (success)

Scanned 1 changed config file(s) and found no harness issues.

Changed config files:

  • .github/workflows/verify-images.yml

Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission.

@ecc-tools

ecc-tools Bot commented Sep 10, 2026

Copy link
Copy Markdown

ECC Tools / Security Evidence

Commit: 6a5965b7a31e933ab0fa7f020164c024c10e9419

Security evidence gate passed (success)

No security-sensitive scanner-evidence gap detected.

Mode: enforce

Scanned 6 changed file(s). No missing scanner-evidence signal was detected.

Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission.

@ecc-tools

ecc-tools Bot commented Sep 10, 2026

Copy link
Copy Markdown

ECC Tools / PR Risk Taxonomy

Commit: 6a5965b7a31e933ab0fa7f020164c024c10e9419

PR taxonomy review recommended (neutral)

Detected 2 PR taxonomy bucket(s): Security Evidence, CI/CD Recommendation.

Scanned 6 changed file(s).

Roadmap taxonomy buckets:

Security Evidence

Security-sensitive changes should carry explicit scanner, code-scanning, or focused regression evidence.

Signals:

  • 1 security-sensitive path(s) changed

Paths:

  • .github/workflows/verify-images.yml

CI/CD Recommendation

CI, dependency, coverage, and contract signals should be routed into follow-up checks or verification work.

Signals:

  • User-facing UI changes may ship without browser coverage
  • CI workflow changes may ship without failure-mode evidence
  • Dependency or CI drift could surface after merge
  • 1 CI or workflow path(s) changed

Paths:

  • .github/workflows/verify-images.yml
  • scripts/test-image-delivery.mjs
  • scripts/test-image-formats.mjs
  • src/components/lora/LoraVisual.astro
  • src/components/projects/ProjectMedia.astro
  • src/data/lora-visual.ts

Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission.

@ecc-tools

ecc-tools Bot commented Sep 10, 2026

Copy link
Copy Markdown

ECC Tools / Reference Set Readiness

Commit: 6a5965b7a31e933ab0fa7f020164c024c10e9419

Reference set readiness gaps detected (neutral)

Reference evidence present for 0/7 areas (0%) across 6 changed file(s).

This check is based on files changed in this PR. Repository-level readiness is still reported by /ecc-tools analyze comments and generated manifests.

Area Status Evidence / Next Step
Deep analyzer corpus Missing Add analyzer fixture, golden, benchmark, or reference-set files that can catch analyzer regressions.
RAG/evaluator comparison Missing Add retrieval or evaluator reference-set comparison fixtures with expected ranking behavior.
PR salvage/review corpus Missing Add stale-PR, review-thread, reopen-flow, or salvage reference cases for queue cleanup automation.
Discussion triage corpus Missing Add public discussion triage fixtures, golden cases, or reference sets for informational, answered, and no-response classifications.
Harness compatibility Missing Add cross-harness, adapter-compliance, or harness-audit evidence for Claude, Codex, OpenCode, Zed, dmux, and agent surfaces.
Security evidence Missing Attach security evidence such as SBOMs, SARIF, audit reports, or AgentShield evidence packs.
CI failure-mode evidence Missing Add captured CI failure logs, dry-run fixtures, or troubleshooting docs for common workflow failure modes.

Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission.

@ecc-tools

ecc-tools Bot commented Sep 10, 2026

Copy link
Copy Markdown

ECC Tools / Hosted Promotion Readiness

Commit: 6a5965b7a31e933ab0fa7f020164c024c10e9419

Hosted promotion readiness passed (success)

No hosted promotion evidence gaps detected across 6 changed file(s); 0 corpus scenarios had matching evidence.

This check compares PR file changes against the evaluator/RAG promotion corpus in src/analyzers/fixtures/evaluator-rag-corpus.ts.
Hosted output scoring inspected 0 completed cached hosted job results.

No evaluator corpus scenarios matched this PR.

Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission.

@ecc-tools

ecc-tools Bot commented Sep 10, 2026

Copy link
Copy Markdown

ECC Tools / PR Config Audit

Commit: 6a5965b7a31e933ab0fa7f020164c024c10e9419

No changed-config issues detected (success)

Scanned 1 config file(s) present at this commit across 1 changed config path(s) and found no issues in the supported security rules.

Changed config files:

  • .github/workflows/verify-images.yml

Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission.

@ecc-tools

ecc-tools Bot commented Sep 10, 2026

Copy link
Copy Markdown

ECC Tools / PR Harness Audit

Commit: 6a5965b7a31e933ab0fa7f020164c024c10e9419

No harness issues detected (success)

Scanned 1 changed config file(s) and found no harness issues.

Changed config files:

  • .github/workflows/verify-images.yml

Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission.

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