README demo GIF is 7.7 MB

未關閉 適合新手
#157 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

難度
2/5
預估耗時
1-3 小時
新手友好度
86/100
Issue 類型
重構
描述清晰度
描述清楚
活躍度
活躍
技術堆疊
javascript
領域
performance

研究方向

從 README.md:131 中的示範參照和來源檔案 assets/screenshots/play-vs-computer.gif 開始。檢查影像尺寸和影格率,接著比較壓縮選項,同時確認片段仍然呈現與電腦對戰的遊戲。README 中的示範小於約 1.5 MB 且仍然容易理解時,即為完成。

由索引模型根據 Issue 內容生成。

描述

good first issue performance severity: low

Summary

assets/screenshots/play-vs-computer.gif, added in the latest commit and embedded in the README, is 7.7 MB. That is about 80% of assets/.

Where

  • README.md:131
  • assets/screenshots/play-vs-computer.gif (7,870,061 bytes)

Impact

Every README view on GitHub downloads about 7.7 MB, which takes seconds on mobile. Every clone carries the file permanently in history, and the Pages deploy publishes it too. The app itself does not download it: the file is not in the service worker's file list.

Suggested fix

Reduce the frame rate, colours or dimensions to stay under about 1.5 MB, or use an MP4/WebM clip, which is usually about 10x smaller. GitHub READMEs can show a video uploaded as an asset. Replace the file soon, before more history accumulates.

Acceptance criteria

  • The README demo is under ~1.5 MB and still shows a game against the computer

Getting started

  • Relevant files: README.md, assets/screenshots/

Filed by repo-audit/full-audit at 73cd279. Severity: low. Effort: S. audit-key: performance|assets/screenshots/play-vs-computer.gif|readme-gif

主要語言
JavaScript
星號
4
分支
2
平均合併
6 小時 13 分鐘
30 天內合併 PR
4

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

TMHSDigital/Static_Chess 的其他 Issue

查看 TMHSDigital/Static_Chess 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。