Skip to content
Back to skills

Fec List Virtualization

ASecurity

用于优化或审查大列表、虚拟滚动、windowing、react-window、TanStack Virtual、可变高度行、动态测量、无限滚动、网格虚拟化或滚动性能;中文触发词包括 虚拟列表、大列表优化、滚动性能。

  • 21 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 3, 2026
developmentreactvue

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 3, 2026

npx -y skills add bovinphang/frontend-craft --skill fec-list-virtualization --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Fec List Virtualization?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Fec List Virtualization
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/bovinphang-fec-list-virtualization-frontend-craft/badge)](https://www.skillsdirectory.com/skills/bovinphang-fec-list-virtualization-frontend-craft)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: fec-list-virtualization
description: 用于优化或审查大列表、虚拟滚动、windowing、react-window、TanStack Virtual、可变高度行、动态测量、无限滚动、网格虚拟化或滚动性能;中文触发词包括 虚拟列表、大列表优化、滚动性能。
---

# 列表虚拟化优化

## 用途

通过窗口化只渲染可视区域,解决大列表 DOM 过多和滚动卡顿。

## 流程

1. 先确认列表规模和瓶颈:500+ 项、滚动掉帧、DOM 节点过多或内存飙升才引入虚拟化。
2. 先遵循项目现有框架、依赖和设计系统约束,再按场景选库:React 可考虑 `react-window` 或 TanStack Virtual;Vue/Solid/Svelte、动态测量、网格或跨框架场景优先考虑 TanStack Virtual;遗留 `react-virtualized` 只维护不新增。
3. 明确 item size、overscan、容器高度、key、滚动容器和 resize 行为。
4. 无限滚动时分离数据分页和 DOM 虚拟化;数据获取可联用数据获取 workflow。
5. 验证 DOM 节点数、滚动 FPS、键盘/屏幕阅读器体验和 Ctrl+F/SEO 限制。

## 详细参考

涉及是否需要虚拟化、库选型、固定高度、可变/动态高度、无限滚动、网格虚拟化和性能注意事项时,加载 [references/virtualization-patterns.md](references/virtualization-patterns.md)。

## 约束

- SEO 关键内容不要只存在于虚拟项中。
- 浏览器原生 Ctrl+F 无法搜索未挂载项目。
- Row 根元素必须透传虚拟库提供的 style/measure ref。
- overscan 过大会浪费内存,过小会白屏。
- 动态高度测量要处理 ResizeObserver 和布局抖动。

## 预期输出

10000+ 项列表滚动接近 60fps,DOM 节点数稳定在可视区域及缓冲区范围,内存从 O(n) 降至 O(visible)。

Files in this skill

  • SKILL.md1.8 KB
  • references/virtualization-patterns.md3.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.