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

duplicate-js

できること

このスキルは、同じツールの二つのバージョンのような、重複したJavaScriptのライブラリがないかを、Webサイトで確認します。より速く安定したページを求める開発者向けです。

使う場面

  • ✓ページが同じライブラリを二回ダウンロードしているとき。
  • ✓バンドルの監査で、大きなライブラリがページをまたいで繰り返されているとき。
  • ✓サードパーティのスクリプトが、共通のコードの独自のコピーを持ち込んでいるとき。

スキルのリンク

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

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

使い方

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

貼り付け用メッセージ

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

AIへの頼み方の例

“私のサイトが同じJavaScriptライブラリを二回以上読み込んでいないか、確認してもらえますか?”

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

仕組み

エージェントは、読み込まれたコードの中で、同じライブラリの複数のバージョンやコピーを探します。それらを一つのバージョンにまとめることを提案します。

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

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

Remove duplicate JavaScript libraries

Duplicate libraries increase bundle size and memory usage, and can lead to unexpected behavior or conflicts between different versions of the same code.

Quick Reference

  • Detect and remove multiple versions of the same library
  • Use a single version across the entire application
  • Audit third-party scripts for bundled dependencies

Check

Identify duplicate JavaScript libraries or multiple versions of the same library being loaded using Lighthouse or bundle analysis tools.

Fix

Consolidate dependencies to use a single version and ensure third-party scripts don't bring in redundant libraries.

Explain

Explain the risks of loading duplicate JavaScript libraries and how it impacts performance and stability.

Code Review

Review the routes, assets, and loading behavior that affect Remove duplicate JavaScript libraries. 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/duplicate-js

よくある質問

重複したライブラリは、なぜ問題ですか?

ダウンロードを大きくし、より多くのメモリを使い、異なるバージョンが衝突するおそれがあると、このスキルは説明しています。

どのように見つけますか?

LighthouseまたはバンドルのAnalysisツールを使うことを、このスキルは提案しています。

サードパーティのスクリプトも対象ですか?

はい。サードパーティのスクリプトが余分なコピーを持ち込んでいないかを確認するよう、このスキルは述べています。

詳細

作者による元の説明

Use when auditing slow page loads, heavy assets, or rendering delays related to Remove duplicate JavaScript libraries. Verify the actual bottleneck in DevTools, Lighthouse, or field data before recommending changes.

repo: thedaviddias/Front-End-Checklist

人気

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

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

0

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

コメント

  • …

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

似ているスキル