本文へスキップ
Skillpedia
WebサイトとUI(フロントエンド)75k · #2777

compression

できること

このスキルは、HTML、CSS、JavaScriptがブラウザに送られる際に圧縮されているかを確認します。ページの配信を速くしたいサイトの運営者や開発者向けです。

使う場面

  • ✓サーバーが、圧縮されていないテキストファイルを送っているとき。
  • ✓遅いモバイル回線の訪問者が、ページの表示を長く待っているとき。
  • ✓新しいWebサーバーやCDNを設定するとき。

スキルのリンク

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/compression/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/compression/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“私のサイトがHTML、CSS、JavaScriptを圧縮しているか確認し、していなければBrotliまたはGzipを有効にしてください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

エージェントはレスポンスのヘッダーでgzipまたはbrのエンコーディングを確認し、なければWebサーバーまたはCDNの設定で圧縮を有効にします。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

Enable text-based compression

Compressed assets download faster, reducing the time to first paint and improving the overall perceived performance, especially on slower mobile networks.

Quick Reference

  • Use Gzip or Brotli to compress text resources (HTML, JS, CSS)
  • Brotli provides superior compression for modern browsers
  • Significantly reduces data transfer size and load times
  • Compression helps network cost, but it does not remove parse and execution cost from oversized bundles

Check

Verify that text-based resources are served with Content-Encoding: gzip or br headers.

Fix

Enable Gzip or Brotli compression in your web server (Nginx, Apache) or CDN settings.

Explain

Explain how text-based compression works and its impact on asset delivery speed.

Code Review

Review the routes, assets, and loading behavior that affect Enable text-based compression. Flag exact files, requests, or rendering steps that add unnecessary network, CPU, or layout cost, and describe the measurement method used to confirm the issue.


For full implementation details, code examples, and framework-specific guidance, see references/rule.md.

Rule page: https://frontendchecklist.io/rules/performance/compression

よくある質問

このスキルはどの圧縮方法を挙げていますか?

GzipとBrotliで、Brotliは最新のブラウザに適していると説明しています。

圧縮で、重いJavaScriptのバンドルは直りますか?

いいえ。圧縮は転送のサイズを減らしますが、大きなバンドルの解析にかかるコストは取り除かないと、このスキルは説明しています。

圧縮はどこで有効にしますか?

NginxやApacheの設定、またはCDNの設定が挙げられています。

詳細

作者による元の説明

Use when auditing slow page loads, heavy assets, or rendering delays related to Enable text-based compression. Verify the actual bottleneck in DevTools, Lighthouse, or field data before recommending changes.

repo: thedaviddias/Front-End-Checklist

人気

GitHubのスター
75k
ランキング
#2777
ライセンス
MIT
更新日
2026/10/31

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル