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

list-virtualization

できること

このスキルは、すべての項目を一度に読み込む長いリスト、表、フィードを確認し、画面に表示される部分だけを描画する方法を提案します。ダッシュボード、検索結果、フィードを作る開発者向けです。

使う場面

  • ✓数百から数千行を表示するページを速くしてほしいとき。
  • ✓ダッシュボード、管理画面の表、フィードが大きすぎて、スクロールが遅くなったとき。
  • ✓さらにコードを足す前に、長いリストが本当にこの変更を必要とするか測りたいとき。

スキルのリンク

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

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

使い方

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

貼り付け用メッセージ

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

AIへの頼み方の例

“数千行ある管理画面の表のスクロールが遅いです。速くする手伝いをしてもらえますか。”

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

仕組み

エージェントは、一度に描画する項目が多すぎるかを確認します。多すぎる場合は、表示中の行とわずかなバッファだけをページに残すウィンドウ方式を提案します。

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

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

Virtualize long lists and tables

Rendering hundreds or thousands of rows at once wastes memory and makes style calculation, layout, and painting more expensive. Virtualization keeps large collections responsive by limiting the number of mounted nodes.

Quick Reference

  • Render only what is visible plus a small overscan buffer instead of the entire list
  • Use virtualization when repeated rows or cards push DOM size and layout cost too high
  • Preserve item sizing, keyboard access, and screen-reader semantics when windowing content
  • Measure scroll smoothness, memory use, and DOM node count before and after the change

Check

Inspect long lists, tables, grids, and feeds for places where the UI renders every item at once. Flag views where the number of mounted rows or cards is large enough to create DOM, memory, or scroll-performance issues.

Fix

Introduce list or table virtualization so only the visible rows plus overscan render, while preserving sizing, keyboard navigation, and any required sticky headers or selection behavior.

Explain

Explain list virtualization, why it improves performance for large collections, and the tradeoffs engineers need to watch for around measurement and accessibility.

Code Review

Inspect collection components, data tables, infinite feeds, and dashboards. Flag places where rendering the full dataset creates excessive DOM nodes or scroll jank, and verify the virtualization strategy still preserves item identity, semantics, and expected interactions.


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

Rule page: https://frontendchecklist.io/rules/performance/list-virtualization

よくある質問

すべてのリストに必要ですか?

いいえ。このスキルは、小さなリストでは通常この追加の複雑さは不要としています。

キーボード操作に影響しますか?

影響する場合があるため、キーボード操作とスクリーンリーダーの対応を維持する必要があります。

効果があったかどうやって分かりますか?

このスキルは、変更の前後でスクロールの滑らかさ、メモリ使用量、ページ要素の数を測ることを勧めています。

詳細

作者による元の説明

Use when reviewing dashboards, admin tables, search results, or feeds with many repeated items. Confirm the bottleneck is DOM or rendering cost before introducing virtualization because small lists usually do not need the added complexity.

repo: thedaviddias/Front-End-Checklist

人気

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

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

0

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

コメント

  • …

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

似ているスキル